FAIL : SSHException: Incompatible ssh peer (no acceptable kex algorithm)问题解决及更新paromiko失败问题解决

转自:http://blog.csdn.net/qy924565830/article/details/52164256

http://blog.csdn.net/coder_xia/article/details/50382278

 

问题描述:运行paromiko连接远程服务器失败:FAIL : SSHException: Incompatible ssh peer (no acceptable kex algorithm)

定位原因:由于ssh 6.7以上屏蔽不安全算法

解决办法:在/etc/ssh/sshd_config最后加上

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

重启ssh服务,问题解决。

 

posted @ 2017-04-24 11:41  垄上行  阅读(5242)  评论(0编辑  收藏  举报