(Windows | Linux)ssh访问服务器报错:no matching key exchange method found
问题现象
ssh user1@192.168.1X.XX
Unable to negotiate with 192.168.1X.XX port 22: no matching key exchange method found. Their offer: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
OpenSSH in Linux解决方法
方案一:ssh -o选项指定KexAlgorithms和HostKeyAlgorithms
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-rsa user1@192.168.1X.XX
注: -o 'option' Process the option as if it was read from a configuration file.
方案二:配置/etc/ssh/ssh_config客户端配置文件
KexAlgorithms=+diffie-hellman-group1-sha1
HostKeyAlgorithms=+ssh-rsa
MACs=+hmac-sha1
Ope
本文地址:https://www.vps345.com/1686.html