看板 Linux 關於我們 聯絡資訊
奇怪我查ssh-keygen並沒有-d的選項 建議你砍掉兩邊的~/.ssh重練。基本上步驟如下 1. 在本機執行ssh-keygen 預設是ssh2, rsa編碼,應該夠用了。會產生id_rsa和id_rsa.pub 可用-f指定別的檔名 (*) 2. 把私鑰擺到本機 ~/.ssh 下,公鑰搬到要連線的伺服器上並 cat 公鑰 >> ~/.ssh/authorized_keys。然後砍掉公鑰檔 *. 如果有用 -f 的話,在本機的~/.ssh/config中編輯 Host * IdentityFile ~/.ssh/你的私鑰檔名 完成 ※ 引述《chiachenyu (Apple真是好物)》之銘言: : 各位先進,我的電腦是 Linux Redhat4.0 因為之前每次用SSH到別台機器都要 : 打密碼,因此參考 http://0rz.tw/PW4s1 輸入 ssh-keygen -d 也改了Pubkey -- -- Kara Trace you are the harbinger of death and will lead the human race to its end. End of line. -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.167.98.89