ssh不能跳转到主机并提示REMOTE HOST IDENTIFICATION HAS CHANGED解决方法

装了个测试机、ssh远程跳转时出错、错误提示如下:


[root@localhost ~]# ssh -p 33322 192.168.18.74

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

a0:cf:da:73:19:e6:bf:7e:42:ef:69:8f:02:76:04:e9.

Please contact your system administrator.

Add correct host key in /root/.ssh/known_hosts to get rid of this message.

Offending key in /root/.ssh/known_hosts:84

RSA host key for 192.168.18.74 has changed and you have requested strict checking.

Host key verification failed.

[root@localhost ~]# ssh -p 3322 192.168.18.74

ssh: connect to host 192.168.18.74 port 3322: Connection refused

[root@localhost ~]# ssh -p 333322 192.168.18.74

Bad port '333322'

[root@localhost ~]# ssh -p 33222 192.168.18.74

ssh: connect to host 192.168.18.74 port 33222: Connection refused


解决办法:在你当前的主机的家目录下、vi ~/.ssh/known_hosts、找到你需要跳转到的主机的ssh-rsa 信息、删除其ssh-rsa 信息后保存即可

你可能感兴趣的:(ssh,remote,host,has,Changed,identification)