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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
