首页 > 编程知识 正文

SSH无法连接到服务器

时间:2023-05-03 19:24:24 阅读:245969 作者:2097

SSH无法连接到服务器 错误代码错误原因解决方法

错误代码 @@甜美的茉莉: REMOTE HOST IDENTIFICATION HAS CHANGED! 靓丽的路人@@IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack)!It is also possible that a host key has just been changed.The fingerprint for the ECDSA key sent by the remote host isSHA256:Ekh4f1pr9XA3IYcJnC7P5WdmviUh8pA5mqfOqoyK6eM.Please contact your system administrator.Add correct host key in /Users/yanyi/.ssh/known_hosts to get rid of this message.Offending ECDSA key in /Users/yanyi/.ssh/known_hosts:1ECDSA host key for 118.190.209.240 has changed and you have requested strict checking.Host key verification failed

错误原因

服务器端重新设置了新的服务器,使用SSH连接时,会生成一个认证,储存在客户端的known_hosts中。
可以使用以下代码查看

ssh-keygen -l -f ~/.ssh/known_hosts


重置后,旧的认证不可以使用。

解决方法

重置Keygen,解决代码如下

ssh-keygen -R 服务器端的ip地址


重新登陆输入yes

降低vue-router版本的2种解决方法实例如何选择网络线路?

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。