SSH报错no matching host key type found. Their offer: ssh-rsa

SSH 报错 no matching host key type found. Their offer: ssh-rsa

解决方法:

ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa  name@host -p 22

配置~/.ssh/config:

Host *
  Hostname     ${x.x.x.x}
  User ${name}
  HostKeyAlgorithms +ssh-rsa
  PubkeyAcceptedKeyTypes +ssh-rsa

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wind.kaisa@gmail.com

💰

×

Help us with donation