ssh 'diffie-hellman-group1-sha1' 问题解决方法

使用 ssh 连接时出现:

Unable to negotiate with xxx.xxx.xxx.xxx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

解决方法:

添加 "-oHostKeyAlgorithms=+ssh-dss -oKexAlgorithms=+diffie-hellman-group1-sha1" 参数连接

# ssh -oHostKeyAlgorithms=+ssh-dss -oKexAlgorithms=+diffie-hellman-group1-sha1 xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx 是具体的主机名称或主机 IP

你可能感兴趣的:(ssh 'diffie-hellman-group1-sha1' 问题解决方法)