Saturday, November 7, 2026

Create private key authen on Windows 11

  • Client Windows 11
  • Server Ubuntu, macOS

Step

  • เปิด power shell แล้วพิมพ์คำสั่งดังนี้สร้าง key

> ssh-keygen -t ed25519 -C "your_email@example.com"

  • คัดลอก key ไปยัง server ให้พร้อมใช้กับ client ของเรา

> Get-Content C:\Users\myname\.ssh\id_ed25519.pub | ssh remote_user@server_ip "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

Related: https://juuier.blogspot.com/2026/02/private-key-for-remote-ssh-server.html

Ref: gemini 

Popular Posts