SSH连接远程服务器(Linux-Centos)以及出现问题解决

$ ssh -l 用户名 XXX.XXX.XXX.XXX

出现以下问题:

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

@ 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:JAeh+bV8B7EAb70h4CtddugiALCDmhXSNapc3/6+/+w.

Please contact your system administrator.

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

Offending ECDSA key in /Users/LiuMingchuan/.ssh/known_hosts:7

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

Host key verification failed.

解决办法:

$ rm ~/.ssh/known_hosts

转自:SSH连接远程服务器(Linux-Centos)以及出现问题解决

你可能感兴趣的:(工作学习遇到问题可搜专栏,ssh,linux)