Problem description
The following error occurred while logging in to the remote machine: warning: remote host identification has changed!
Baidu found that the public key has changed after the remote host is reinstalled. When SSH links, the public key will be verified first. If the public key is wrong, an error will be reported
You can check the .SSH directory and find a know_Hosts file
Under the window is [C:\users\#user name #\.SSH]
Cd ~ /.SSH under Linux
After opening, the content is recorded as:
The public key of each remote host is recorded respectively
Solution:
1. Find the file and delete the public key of the corresponding IP
2. Clear the suggestion by SSH keygen command
ssh-keygen -R 110.42.128.29
Refer to Linux SSH Remote Login error resolution