SSHException: Incompatible ssh peer (no acceptable kex algorithm)
来源:互联网 发布:网络热词2017及解释 编辑:程序博客网 时间:2024/06/03 21:19
使用公司维护助手(python开发)执行巡检,导入主机信息时,发现无法连接,报错信息如下:
2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: Exception: Incompatible ssh peer (no acceptable kex algorithm)2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: Traceback (most recent call last):2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: File "paramiko\transport.pyc", line 1584, in run2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: File "paramiko\transport.pyc", line 1663, in _negotiate_keys2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: File "paramiko\transport.pyc", line 1776, in _parse_kex_init2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: SSHException: Incompatible ssh peer (no acceptable kex algorithm)2015-12-22 15:41:12,983: 15004 ERROR: paramiko.transport: 2015-12-22 15:41:13,000: 6124 ERROR: SSHClient.login: Traceback (most recent call last): File ".\LIB\Framework\MAProtocols\Communication\MASFTP.py", line 305, in loginViaPwd File "paramiko\transport.pyc", line 1006, in connect File "paramiko\transport.pyc", line 464, in start_clientSSHException: Incompatible ssh peer (no acceptable kex algorithm)搜索发现有人说是paramiko模块版本问题,重试另一台服务器,发现可以连接,排除客户端问题;
想起曾经自动部署工具ideploy连接不上的配置,于是比对/etc/ssh/sshd_conf和/usr/etc/sshd_conf文件,发现能连接上的机器比不能连接上的机器末尾多了一行加密算法
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版本
OS01:~ # ssh -VOpenSSH_6.9p1, OpenSSL 1.0.1j 15 Oct 2014
基本确认与上次JSch程序连接不上原因一致,ssh 6.7以上屏蔽不安全算法,配置即可解决
0 0
- SSHException: Incompatible ssh peer (no acceptable kex algorithm)
- Incompatible ssh peer (no acceptable kex algorithm)
- 问题Incompatible ssh peer
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- 网络请求No peer certificate
- http请求No peer certificate的解决方法
- http请求No peer certificate的解决方法
- javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
- http请求No peer certificate的解决方法
- CentOS5 no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- error: no acceptable C compiler found in $PATH
- C++11 并发指南二(std::thread 详解)
- 浮点型在内存中的存放方式问题
- 2015年9-10月互联网秋招经典面试题目汇总
- 解决C3P0在Linux下Failed to get local InetAddress for VMID问题
- Java关键字 volatile
- SSHException: Incompatible ssh peer (no acceptable kex algorithm)
- Go语言学习
- Struts2的学习(1)--Struts2.xml文件的配置
- Django学习小结
- 190. Reverse Bits
- c++获取cpu信息代码
- 每日一篇:求无相同数字
- STL系列之一 deque双向队列
- 绪论-第1章-《数据结构习题集》答案解析-严蔚敏吴伟民版