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之后,找到了解决方案,命令如下,删除相关信息即可,
代码如下 | |
|
之后会看到如下信息:将下面的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
新闻热点
疑难解答
图片精选