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 客户端不支持 ssh-rsa 算法,如果要解决报错需要手动修改本地配置,指定具体的 ssh-rsa 算法。

解决方案

新建 ~/.ssh/config 文件:

touch ~/.ssh/config
vi ~/.ssh/config

手动添加如下内容:

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

ssh 连接报错:Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found.相关推荐

  1. Unable to negotiate with 192.168.7.203 port 22: no matching key exchange method found. Their offer:

    Unable to negotiate with xxxx port xxxx: no matching key exchange method found. Their offer: diffie- ...

  2. ssh登录主机报错: Unable to negotiate with 172.222.222.243 port 22: no matching key exchange method found.

    问题:ssh登录主机报错 ssh root@172.222.222.243 报错 #报错Unable to negotiate with 172.222.222.243 port 22: no mat ...

  3. Unable to negotiate with x.x.x.x port 22: no matching key exchange method found. Their offer: diffie

    今天需要ssh到centos5.10 64位机器上做点事情. windows和linux上 都运行ssh-keygen,一路回车,分别在两个系统的用户目录下生成.ssh文件夹 把windows .ss ...

  4. Unable to negotiate with 100.9.70.30 port 29418: no matching key exchange method found

    1.问题 在Linux上 clone Gerrit 代码时报错:Unable to negotiate with 100.9.70.30 port 29418: no matching key exc ...

  5. Unable to negotiate with 192.168.2.53 port 22: no matching host key type found. Their offer: ssh-rsa

    终端远程登录ssh时,提示如下错误: Unable to negotiate with 192.168.2.53 port 22: no matching host key type found. T ...

  6. 【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh

    文章目录 问题 解决 问题 运行 git clone git@code.aliyun.com:project-main/project-name.git,报错如下: Cloning into 'pro ...

  7. Unable to negotiate with 192.168.XX.XX port XXXX: no matching key exchange method found.

    问题 Unable to negotiate with 192.168.XX.XX port 29418: no matching key exchange method found. Their o ...

  8. Unable to negotiate with 120.26.106.212 port 22: no matching host key type f

    原因是Terminal找不到支持的密钥交换方法,因为新版Openssh中认为SHA1这种hash散列算法过于薄弱,已经不再支持,所以我们需要手动去允许对于SHA1的支持 . 解决办法: 在生成公钥的~ ...

  9. Ubuntu中ssh远程报错:packet_write_wait: Connection to 192.168.163.190 port 22: Broken pipe lost connection

    ssh远程报错 :packet_write_wait: Connection to 192.168.163.190 port 22: Broken pipe lost connection 网上常见问 ...

最新文章

  1. bzoj 1409 Password 矩阵快速幂+欧拉函数
  2. 由浅入深解读Redis高级能力及性能调优
  3. ModuleNotFoundError: No module named ‘config‘
  4. 关于wmi获取网卡mac地址重复的分析
  5. 昨天电脑问题 补昨日8-3复习内容 异常与文件操作
  6. 白话科普系列——网站靠什么提升加载速度?
  7. redis复制_Redis复制
  8. volatile关键字解析
  9. python缩进注意事项_python注意事项
  10. php7.1 win7,win7 配置AMP环境(apache2.4.39 + php7.1.28)
  11. 安装WIN 7 64位Windows6.1-KB2999226-x64.msu
  12. 计算机二级知识普及挑战赛答案,全国计算机二级试题库
  13. java随机生成名字_java随机生成一个名字和对应拼音的方法
  14. element el-table表头添加背景图片
  15. permutohedral lattice理解
  16. 今日份bug,点击win10任务栏视窗动态壁纸消失的bug,暂未发现解决方法。
  17. 去掉任务栏中SATA硬盘的安全删除硬件图标
  18. FFmpeg编译成Android动态库
  19. hadoop启动命令 start-all.sh失效解决办法
  20. hector-slam之杉川雷达配置过程

热门文章

  1. 在QT中调用google earth并打开KML文件
  2. docker部署Sers
  3. 【每日新闻】中国人工智能技术爆炸发展,美国开始落后?
  4. 对比文本 python学习 工具类代码
  5. [附源码]java毕业设计大学教师年终考核管理信息系统
  6. 2019计算机打字题,2019打字年度考核个人总结
  7. Xposed 企业微信 逆向学习 微信机器人
  8. mysql商品平均价、总价
  9. [XCTF-pwn] 31_ciscn-2018-Quals_house_of_grey
  10. 腾讯云服务器入门使用-连接登录