Loading...

Change password of ssh key

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

Existing (private) ssh keys may have a password. If you want to alter the password, the ssh-keygen command will reassign the pass phrase to the existing private key.

# RSA algorithm
ssh-keygen -p -f ~/.ssh/id_rsa
# DSA algorithm
ssh-keygen -p -f ~/.ssh/id_dsa
ssh
Please remember the terms for blog comments.