Thursday, June 15, 2017

Linux: How to solve Host Key Verification Failed on Linux

this message appeared when trying to connect to the server in nautilus
this message appeared when trying to ssh the remote server
1. Copy paste the known_hosts file in /home/hostname/.ssh to have a backup.

known_hosts file residing in /home/hostname/.ssh
2. Change or remove the host key in your know_hosts file in /home/hostname/.ssh. 


in the example above, when we try to ssh the server, message will appear that we need to remove the 2nd host in our know_hosts file

Edit know_hosts file and remove the 2nd host
3. Connect to the server.


connecting remote server in nautilus
successfully connected to the remote host via nautilus
successfully connected to the remote host via ssh

No comments:

Post a Comment