ubuntu-SSH远程连接时出现:server responded "algorithm negotiation failed"的处理方法

1:首先检查是否安装了ssh(在ubuntu系统中)

如果没有安装就按照提示安装

一般就输入

sudo apt-get install openssh-server或者sudo apt-get install ssh

然后在输入

sudo vim /etc/ssh/sshd_config可能出现vim问题,可以把vim改为vi

也可以输入gedit /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, [email protected] ,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, [email protected]

然后保存

重启ssh

sudo /etc/init.d/ssh restart

基本会成功连接。如果有问题请看我下一个博客,因为我就遇到过这样的问题,修改了还是出现了问题

猜你喜欢

转载自blog.csdn.net/wangdong2017/article/details/80327326