Easily configure a performant, secure, and stable NGINX server.Learn More
Add correct host key in /root/.ssh/known_hosts to get rid of this message
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/knownhosts to get rid of this message.
Offending ECDSA key in /root/.ssh/knownhosts:5
remove with: ssh-keygen -f “/root/.ssh/known_hosts” -R 22.214.171.124
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
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.×