step 1: I reboot, and the connection is closed. step 2:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
I removed the known_hosts step 3: I can connection my server. But, Warning: Permanently added ‘104.236.158.122’ (RSA) to the list of known hosts. Then, I enter my password. When it comes to changing my password, connection is closed…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello dear If you have reinstalled Linux or UNIX with OpenSSH, you will get the above error. To get rid of this problem:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Remove keys
Use the -R option to removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts. If your remote hostname is server.example.com or 128.199.xxx.xxx , enter:
$ ssh-keygen -R {server.name.com}
or
$ ssh-keygen -R {128.199.xxx.xxx}
and then
$ ssh-keygen -R server.example.com
Sample output:
/home/vivek/.ssh/known_hosts updated.
Original contents retained as /home/vivek/.ssh/known_hosts.old
Now, you can connect to the host without a problem.
Have a nice day
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.