用ssh连接linux服务器时,报错Unable to negotiate with xx.xx.xx.xx port 22: no matching key exchange method found.
Their offer:diffie-hellman-group1-sha1
解决办法:在~/.ssh文件夹下,新建一个config文件(config文件没有后缀),文件中添加如下内容:
Host xx.xx.xx.xx
KexAlgorithms +diffie-hellman-group1-sha1
然后保存即可。
注意:xx.xx.xx.xx为服务器ip;+前面有一个空格!
此方法只支持当前用户连接Linux服务器,不支持其他用户登陆。
当使用SSH连接Linux服务器时遇到Unable to negotiate with xx.xx.xx.xx port 22: no matching key exchange method found.错误,可通过在~/.ssh目录下创建config文件并添加特定配置来解决。具体步骤是在config文件中指定服务器IP和KexAlgorithms参数为diffie-hellman-group1-sha1。
3578

被折叠的 条评论
为什么被折叠?



