Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1240870
  • 博文数量: 389
  • 博客积分: 2874
  • 博客等级: 少校
  • 技术积分: 3577
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-24 10:34
文章分类

全部博文(389)

文章存档

2020年(2)

2018年(39)

2017年(27)

2016年(3)

2015年(55)

2014年(92)

2013年(54)

2012年(53)

2011年(64)

分类: LINUX

2018-06-12 09:24:44

问题:Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

解决:-oKexAlgorithms=+diffie-hellman-group1-sha1

问题:Unable to negotiate with 192.168.xx.xx port 22: no matching host key type found. Their offer: ssh-dss

解决:-oHostKeyAlgorithms=+ssh-dss

问题:Unable to negotiate with 192.168.xx.xx port 22: no matching cipher found. Their offer: 3des-cbc

解决:-oCiphers=+3des-cbc


最后命令是这样的:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -oCiphers=+3des-cbc user@192.168.xx.xx

登录strongswan测试环境中的主机会出现 
$ ssh root@192.168.0.1
Unable to negotiate with 192.168.0.1 port 22: no matching cipher found. Their offer: arcfour
意思是本地默认不支持arcfour算法,
用如下方法就可以访问:
ssh  -oCiphers=arcfour root@192.168.0.1

阅读(6583) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~