By fast2fortune
When try to login to remote server from my local machine using terminal I get the following message Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /root/.ssh/known_hosts:5 remove with: ssh-keygen -f “/root/.ssh/known_hosts” -R 45.55.154.139 Password authentication is disabled to avoid man-in-the-middle attacks. Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
I generated rsa key from server by using the following command
ssh-keyscan -t rsa ip_address
```added the rsa key to known_hosts file in my local machine, but still I am getting this issue
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!
ssh-keygen -f “/home/my_username/.ssh/known_hosts” -R “addr_of_remote_server”
perhaps you need to use the correct host key type
grant@outhouse:~[20220830-13:40][#1003]$ ssh-keyscan -t ecdsa 10.1.132.201
# 10.1.132.201:22 SSH-2.0-OpenSSH_8.0
10.1.132.201 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBD8srrJpp08VIkxLg08tK6gEGOWs5xCbeLppb/i8nYGcOXXpGa0UXMqfA8e8L20RtiY905osTH1mGFRSLRgV6ic=
grant@outhouse:~[20220830-13:41][#1004]$
then add this to ~/.ssh/known_hosts
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.