1- Mac和Linux远程连接服务器异常修复(WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)

一、问题:在mac上连接远程linux ssh [email protected]

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

@    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 a host key has just been changed.

The fingerprint for the ECDSA key sent by the remote host is

SHA256:jiGD0gYgd/DvlY/1I5KK3KX5yz7/GA8m+3MeH0EwLx8.

Please contact your system administrator.

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

Offending ECDSA key in /Users/apple/.ssh/known_hosts:6

ECDSA host key for 116.62.247.33 has changed and you have requested strict checking.

Host key verification failed.

 

二、解决方法, 看错误日志中有一句

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

 

三、以编辑器的方式进入这个文件

vi /Users/apple/.ssh/known_hosts

 

四、将以下部分删除

xxx.xx.xxx.xx acdsa-sha2-nistp256 AAAAAE2VjZHNLX xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxxxxs5mA=

 

猜你喜欢

转载自www.cnblogs.com/zhenghaimin/p/11220095.html