Re: [問題] SSH 登入密碼問題

看板Linux作者 (So Say We All.)時間16年前 (2009/04/13 18:09), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/7 (看更多)
奇怪我查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
文章代碼(AID): #19umzfX2 (Linux)
討論串 (同標題文章)
文章代碼(AID): #19umzfX2 (Linux)