If you try to connect to a remote host using ssh and get a message like this: ❯ ssh ruben@<external_host> You have two possible methods to fix it: Option 1 The warning message shows us that the issue is located in line 39 of the kown_hosts file. Deleting that file should fix the warning. Option 2 ❯ ssh-keygen -R <external_host>
This week I needed to verify an SSH private key password as I wasn’t sure if it was the correct password. After some Google research, I found this blog post with the exact solution to my question: How to verify your SSH private key password ssh-keygen -y -f /path/to/ssh_key -y: parameter will help us to verify the password key, checking the private key and printing the public key to the stdout.