云计算百科
云计算领域专业知识百科平台

(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

赞(0)
未经允许不得转载:网硕互联帮助中心 » (Windows | Linux)ssh访问服务器报错:no matching key exchange method found
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!