How to check if a SSH private key password is correct

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.

-f: enables us to select the ssh key we want to verify.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *