OS:LINUX ubuntu server 9.10

問題: localhost port 22 connection refused

原因是port22可能被block 如果沒有做block的動作

那麼可能是沒有安裝ssh套件

使用apt-get install ssh

即會安裝rssh套件

輸入

~$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""
~$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys

將公鑰給localhost

這樣連自己就不用一直key密碼

測試 ssh localhost 不用key 密碼即連線則成功

arrow
arrow
    全站熱搜

    caramels 發表在 痞客邦 留言(0) 人氣()