user@freemongolia.cn%mkdir ~/.ssh
user@freemongolia.cn%cd ~/.ssh
user@freemongolia.cn%vi authorized_keys
復制Puttygen.exe程序Public key for pasting into Open SSH authorized_keys file:下面的內(nèi)容到服務器上的authorized_keys文件中粘貼并保存退出。
5、使用Putty密鑰方式驗證自動登陸
打開Putty.exe------>Session------>Host name(or IP address)輸入遠程服務器IP地址----->Connection------>data------>Auto-login username輸入用于登陸的用戶名-------->SSH---->Auth------>Private key file for authentication:----->點擊Browser選擇到你保存私鑰(.pkk)的文件。---->Open自動登陸到服務器上了。