ssh 遇到無法登入的疑難雜症

有時候登入遠端主機的時候會發現「no matching cipher found」的問題

sam@liho:~$ ssh www
Unable to negotiate with 192.168.x.x port 22: no matching cipher found. Their offer: 3des-cbc,blowfish-cbc,twofish-cbc,twofish256-cbc,twofish192-cbc,twofish128-cbc,aes256-cbc,aes192-cbc,aes128-cbc,arcfour,cast128-cbc

那就加入 cipher 給它. 可以設定 .ssh/config 檔案 加入上列其中一個 cipher即可

sam@liho:~$ cat ~/.ssh/config
Host www
    Hostname 192.168.x.x
    Ciphers +aes256-cbc

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.