Unable to negotiate with IP port 22: no matching host key type found. Their offer: ssh-rsa, ssh-dss
·
解决 ssh 远程报错 Unable to negotiate with IP port 22: no matching host key type found. Their offer: ssh-rsa, ssh-dss
ssh 登录 redhat6.4 服务器,报错了
Unable to negotiate with IP port 22: no matching host key type found. Their offer: ssh-rsa, ssh-dss
这个问题很过瘾啊
跟大家分享下解决办法,真实有效
在当前服务器 ~/.ssh/目录下创建一个 config文件
若不存在 ~/.ssh/目录
可以创建 mkdir ~/.ssh/
或 ssh-keygen -t rsa生成公钥/私钥 自动创建 ~/.ssh/目录
vim ~/.ssh/config
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
然后再去远程,无报错,正常了
我们下期见,拜拜!
更多推荐

所有评论(0)