700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 解决Windows10 ssh连接Linux服务器Unable to negotiate with xx.xx.xx.xx port xx: no matching key exchange meth

解决Windows10 ssh连接Linux服务器Unable to negotiate with xx.xx.xx.xx port xx: no matching key exchange meth

时间:2020-01-30 11:04:23

相关推荐

解决Windows10 ssh连接Linux服务器Unable to negotiate with xx.xx.xx.xx port xx: no matching key exchange meth

解决Windows10 ssh连接Linux服务器Unable to negotiate with xx.xx.xx.xx port xx: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1问题

Git安装

Git for windows:/

Windws10 安装Git后使用SSH连接Linux服务器时遇到问题:Unable to negotiate with xx.xx.xx.xx port xx: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1解决办法如下:

解决办法

在C盘“用户/当前用户名/.ssh/”文件下新建config文件,该文件无扩展名。然后使用写字板等打开,输入以下内容:

Host xx.xx.xx.xxKexAlgorithms +diffie-hellman-group1-sha1

注意:xx.xx.xx.xx为服务器ip;+前面有一个空格!

此方法只支持当前用户连接Linux服务器,不支持其他用户登陆。

Windows10 使用SSH连接Linux服务器

找到Git安装目录,打开git-bash.exe,然后在命令行中输入

ssh username@xx.xx.xx.xx //username为服务器用户名然后根据提示输入:yesusername@xx.xx.xx.xx's password: //输入密码

参考

CSDN博客:/fengbingchun/article/details/50170017?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。