【SSH】Server responded “Algorithm“ negotiation failed“ Key exchange with the remote host failed.

编程入门 行业动态 更新时间:2024-10-18 21:26:03

【SSH】Server responded “<a href=https://www.elefans.com/category/jswz/34/1712645.html style=Algorithm“ negotiation failed“ Key exchange with the remote host failed."/>

【SSH】Server responded “Algorithm“ negotiation failed“ Key exchange with the remote host failed.

 

使用SSH Secure Shell工具连接报错如下:

Server responded "Algorithm" negotiation failed"
Key exchange with the remote host failed. This can happen for example if the remote host
computer does not support the selected algoritms

 

解决方法,登录主机:

更改 /etc/ssh/sshd_config文件。

执行命令:

vi /etc/ssh/sshd_config

在 PasswordAuthentication yes 的后面追加如下内容。

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbcMACs hmac-md5,hmac-sha1,umac-64@openssh,hmac-ripemd160,hmac-sha1-96,hmac-md5-96KexAlgorithms 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

 

然后重启ssdh

systemctl restart sshd.service

也可以使用命令

service sshd restart 

查看下sshd的状态

六:在重新使用SSH Secure Shell 工具连接即可。

更多推荐

【SSH】Server responded “Algorithm“ negotiation failed“ Key exchange with the remo

本文发布于:2024-02-12 01:14:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1684870.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Algorithm   negotiation   responded   SSH   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!