By reyesjmf
Hello! I am a complete novice so please bear with me.
I had a droplet running Debian that was working fine. I decided to rebuild it to Ubuntu just to try it out and basically get my feet wet in running more SSH commands.
Now, whenever I log in via SSH (using Chrome’s Secure Shell) i get: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED error.
I did a quick search and learned that i can run ssh-keygen -R "you server hostname or ip" to fix the problem. I then opened the console from inside my Digital Ocean account and ran the line. However, all i get is do_known_hosts: hostkeys_foreach failed: No such file or directory
If it matters, I also reset my root password and received the new one via email. Logged in via DO Console and was asked to enter a new one which I did. Also FYI, the error only appears when I log in using Chrome’s Secure Shell and not on DO’s Console.
Anyone?
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!
Hi @reyesjmf
Are you using SSH keys to access the server? Or did you setup the server originally with keys? And let’s stay with PuTTY, until you can access with that, then we can look at CSS.
You are expected to run ssh-keygen -R "you server hostname or ip" on your client (so in Chrome’s Secure Shell) and not on the server.
The “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED” error occurs when the SSH client detects that the remote host’s key (the server’s fingerprint) has changed since the last time you connected. This warning is a security feature designed to prevent man-in-the-middle (MITM) attacks. However, it can also happen if the server’s SSH key was legitimately changed (e.g., due to a server rebuild, new OS installation, or SSH reconfiguration).
What you’ll need to do is remove that line from your known_hosts file and try to SSH agian.
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.