WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! appears when connecting to a remote cloud host through the terminal

Today, when I used the Ubuntu18.04 subsystem under Windows to connect to the cloud host, a prompt "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" suddenly appeared. The
reason was that the remote cloud host was previously reinstalled and the key verification failed, so I used vim Enter the ssh file to delete the remaining key file, the method is as follows:

 sudo vim /home/user/.ssh/known_hosts

Among them, modify user to your username

Just delete it

Guess you like

Origin blog.csdn.net/m0_47659575/article/details/112915072