March 10

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.


Copyright 2021. All rights reserved.

Posted March 10, 2025 by Timothy Conrad in category "Linux", "Security

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B