处理高版本的ssh无法登陆低版本的节点

现象:高版本的ssh登陆低版本操作系统时,会提示:Unable to negotiate with x.x.x.x port xxx: no matching host key type found. Their offer: ssh-rsa,ssh-dss

ssh-keygen
vim .ssh/config
添加

Host *
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa
posted @ 2023-10-23 09:31  liwldev  阅读(164)  评论(0编辑  收藏  举报