0%

putty 操作筆記

 

工作上遇到的問題 , 800 萬年沒用 Putty 筆記下
可以參考這裡
先用 PuttyGen 產生公鑰 , 然後複製整行的公鑰
然後記得要保存私鑰
在 linux 底下建立 ~/.ssh/authorized_keys

1
2
3
vim ~/.ssh/authorized_keys
#你的公鑰
ssh-rsa AAAAB3Nzaxxxxxxxxxxxxxxxxx

然後在 Putty 的 Session => Host Name(or IP address) 敲入 ip
Connection => Data => Auto-login username 敲入帳號
SSH => Auth => Credentials=>Private key file for authentication=>Browse放上你的ppk`
基本上就能登入了

我自己習慣用 windows 的 ssh 來操作 , 不愛 Putty , 參考這篇
一樣用 PuttyGen 來轉換
File => Load Private Key
Conversions => Export OpenSSH Key 保存成你要的名稱

1
ssh -i server1.pem ubuntu@your-server-ip
關閉