轉自: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服務,問題解決。