Linux——可以ping通,但ssh连接不上的解决方法

一、报错:

C:\Users\NINGMEI>ssh XXX@192.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:roFO5yhBWszYsc9rnBwRDrEe5tg+iFw3DZ86z8ODV1s.
Please contact your system administrator.
Add correct host key in C:\\Users\\NINGMEI/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\NINGMEI/.ssh/known_hosts:10
ECDSA host key for 192.XXX.XXX.XXX has changed and you have requested strict checking.
Host key verification failed.

二、解决方案:

Linux——可以ping通,但ssh连接不上的解决方法_第1张图片

参考文献

  1. 通过SSH 连接 linux服务器提示 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

你可能感兴趣的:(Ubuntu,linux,ssh)