I was doing the same I always do to enrol myself in my university classes. It’s an ssh user@server program, what ever that means. Then from one day to another I received this error: “User:~ user$ ssh server @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 RSA key sent by the remote host is SHA256:WsK15iIwIHek0BOwQ7ofG9iayZrXBgRXWMQURSaxUAY. Please contact your system administrator. Add correct host key in /Users/$USER/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/$USER/.ssh/known_hosts:1 RSA host key for rumad.uprm.edu has changed and you have requested strict checking. Host key verification failed.”
I don’t know what happened. I don’t even use Terminal for nothing else. If you can help me it would be amazing. Thank you
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, @jeremymorales1
Have you made any changes like generating new ssh keys and etc?
You can edit the file and remove line 1 as per the message.
- nano +1 /Users/USER/.ssh/knownhosts
Then just delete the first line in the file and save the file then exit.
Offending RSA key in /Users/$USER/.ssh/known_hosts:1
You can also use ssh-keygen to delete the invalid key
ssh-keygen -R "you server hostname or IP address"
Hope that this helps! Regards, Alex
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.