Ali cloud host - login problems after a system reset

Ali cloud host - login problems after a system reset

Today, after the disk is formatted Ali cloud server, and then the windows system, on gitbash login with ssh, meet the following question:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:o2C1yCSeP9SeB0dCwDYPnvu9V2JY1C0kiqiPbh1pfWQ.
Please contact your system administrator.
Add correct host key in /c/Users/gengyufei/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/gengyufei/.ssh/known_hosts:1
ECDSA host key for 39.106.185.75 has changed and you have requested strict checking.
Host key verification failed.

 

solution:

1、指令:cat ~/.ssh/known_hosts

The following screen:

39.xxx.xxx.75 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBB7p/tpYTMRM8tynWcP9uxjvaU7D/3KVohP0Qm2kw/vrrqaRA66obLRujyhmYVIzI6HmoK5xof8Tx49DjbkK3U8=

2, my server IP address: 39.xxx.xxx.75, execute the following command to keep a record of its history, and save your ssh login server can be re-used

命令:vim ~/.ssh/known_hosts

Guess you like

Origin www.cnblogs.com/gengyufei/p/11668034.html