工作上遇到的問題 , 800 萬年沒用 Putty 筆記下
可以參考這裡
先用 PuttyGen 產生公鑰 , 然後複製整行的公鑰
然後記得要保存私鑰
在 linux 底下建立 ~/.ssh/authorized_keys
1 | vim ~/.ssh/authorized_keys |
然後在 Putty 的 Session => Host Name(or IP address) 敲入 ipConnection => Data => Auto-login username 敲入帳號SSH => Auth => Credentials=>Private key file for authentication=>Browse放上你的ppk`
基本上就能登入了
我自己習慣用 windows 的 ssh 來操作 , 不愛 Putty , 參考這篇
一樣用 PuttyGen 來轉換File => Load Private KeyConversions => Export OpenSSH Key 保存成你要的名稱
1 | ssh -i server1.pem ubuntu@your-server-ip |