日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

SSH Secure Shell Client无法连接utbuntu的报错

發布時間:2025/5/22 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的报错的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。