☰ Categories

ssh-keygen change password

In most circumstances you are going to want a secured private key.

It is good practice to change the key out, but it is also good practice to change your password on occasion. To do this you can do the following:

 ssh-keygen -p -f ~/.ssh/id_rsa

To test your password do the following:

 ssh-keygen -y -f ~/.ssh/id_rsa

If the password is correct it will display your public key.