Remove passphrase from ssh private key

To remove passphrase from an existing key, we can use ssh-keygen with -p option. Here is an example which changes passphrase of private rsa key from some specific value to an empty string.

$ ssh-keygen -p -P current_passprase -N "" -f ~/.ssh/id_rsa

Note that it is better to have a passphrase in private key in most cases.

Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments