ssh client 报 algorithm negotiation failed的解决方法之一
2017-09-15 15:49
686 查看
修改sshd的配置文件 /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服务后,即可正常连接。
导致此问题的原因是ssh升级后,为了安全,默认不再采用原来一些加密算法,我们手工添加进去即可。
操作命令如下:
修改sshd的配置文件 /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服务后,即可正常连接。
导致此问题的原因是ssh升级后,为了安全,默认不再采用原来一些加密算法,我们手工添加进去即可。
操作命令如下:
chmod 777 /etc/ssh/sshd_config
vi /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
重启 ssh
service sshd restart
相关文章推荐
- ssh client 报 algorithm negotiation failed的解决方法
- ssh client 报 algorithm negotiation failed的解决方法
- [异常解决] windows用SSH和linux同步文件&linux开启SSH&ssh client 报 algorithm negotiation failed的解决方法之一
- windows用SSH和linux同步文件&linux开启SSH&ssh client 报 algorithm negotiation failed的解决方法之一
- ssh secure shell连接linux报 algorithm negotiation failed的解决方法
- ssh client 报 algorithm negotiation failed
- ssh secure shell client 连接报错 algorithm negotiation failed
- ssh client 报 algorithm negotiation failed的解决方法
- Ubuntu 16.04 ssh 登陆出现错误Algorithm Negotiation failed when trying to connect to server 解决
- ssh client 报 algorithm negotiation failed的解决方法之一
- ssh client在连接linux的时候 报 Algorithm negotiation failed
- algorithm negotiation failed的解决方法
- ssh client 报 algorithm negotiation failed的解决方法之一
- SSH Secure File Transfer Client连接远程设备报“algorithm negotiation failed”错的解决方法
- SSH Secure File Transfer Client连接远程设备报“algorithm negotiation failed”错的解决方法
- ssh client algorithm negotiation failed
- SSH Secure Shell Client中文乱码的解决方法
- SSH连接时出现Host key verification failed的原因及解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法