SSH Secure Shell Client无法连接utbuntu的报错
ssh cecure server reponded algorithm nogeriation failed?
key exchange with the romote host failed.this can happen for example if the remote host computer does not support the selected algorithms
翻譯過來就是:
ssh安全服務器響應算法協商失敗
與遠程主機的密鑰交換失敗。例如,如果遠程主機不支持所選算法,則可能發生這種情況
?
解決辦法一:
修改ssh的配置文件 /etc/ssh/sshd_config
在配置文件中添加:
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
重啟sshd服務后,即可正常連接。
ps:導致此問題的原因是ssh升級后,為了安全,默認不在采用原來一些加密算法,我們手工添加進去即可
?
解決辦法二:可以嘗試其它ssh客戶端,比如putty、Xshell
總結
以上是生活随笔為你收集整理的SSH Secure Shell Client无法连接utbuntu的报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: window用ssh连接本机虚拟机中的u
- 下一篇: 不错的屏幕截图软件FastStone C