Jquery中文网 www.jquerycn.cn
Jquery中文网 >  操作系统  >  windows  >  正文 SSH无法连接VPS常见解决办法

SSH无法连接VPS常见解决办法

发布时间:2020-04-17   编辑:www.jquerycn.cn
jquery中文网为您提供SSH无法连接VPS常见解决办法等资源,欢迎您收藏本站,我们将为您提供最新的SSH无法连接VPS常见解决办法资源
本文章给大家介绍一个我今天碰到的问题,就是SSH无法连接VPS了,下面我给大家介绍解决办法,有需要的朋友可参考。
<script>ec(2);</script>

ssh命令连接时,出现错误如下:

zhang-hengde-MacBook-Air:~ henry24264$ ssh root@66.105.230.188
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
08:70:a2:d1:8c:a8:e2:a3:75:27:b5:90:ce:54:5b:3d.
Please contact your system administrator.
Add correct host key in /Users/henry/.ssh/known_hosts to get rid of this message.
Offending key in /Users/henry/.ssh/known_hosts:2
RSA host key for 66.105.230.188 has changed and you have requested strict checking.
Host key verification failed.
google之后,找到了解决方案,命令如下,删除相关信息即可,

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy6734')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy6734>


1 zhang-hengde-MacBook-Air:~ henry24264$ vi ~/.ssh/known_hosts

</td> </tr> </table>

之后会看到如下信息:将下面的ssh-rsa全部删除即可,vi命令后,左右键找到下面信息的位置,然后在选中行处,按dd即可删除一行。

192.168.1.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs7tE1nlC8YUMHkJUmSpFeJCc0ztFQiWGIKlyrnf4KVCz Ece/yY59QXnVG7b0DWA/wyzlaGRdumWFexX4Y7VE3WunEeXVPMRjF0YZgG5qW6EDXNMEquZzI5k7Jg96VGq 5ZzhtsRhUqXH1aNrMYydRfMUFDXTh a3jKcoQLx9IiifouUuh5JEelql9w9FRgmOgOqmm3CVbn33mblyHZa0UOa3GDpFGRxFjxyPVLuOD90rJIVc126CxIK3TmsFS0emO7qxpz4mrNG/1xpCqgKxNejBkrlUtxzLxGbwuod3HPX7OB28uk1RdGsXhcZtKsPph3a04i7Y5C5QZ1XDXFzDQ==
192.168.1.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsI5fLkoQayuhjMLXaE69VlxA7en/SmxXs VDjgXLGLLTLdSOxki1cBDzuPm4FefmES4A3X3mfAB8L46rFnPJe45hca4U6uC

</td> </tr> </table>

您可能感兴趣的文章:
SSH无法连接VPS常见解决办法
避免SSH连接因超时闲置断开
php提示Warning: file_get_contents(): couldn’t resolve
Navicat for MySQL管理Linux VPS数据库两处连接报错问题
FTP和SSH无法.htaccess文件的解决方法
centos下putty连接vps
25个必须记住的ssh命令
PHP站点提示“/var/lib/mysql/mysql.sock”不存在的解决方法
文本界面下登录ssh需要代理的解决办法
网络无法连接怎么办?电脑无法连接网络解决方法

[关闭]