Logo
My Journal
Blog

Timeline

Blog

Remove passphrase (password) from private RSA key

Remove passphrase

[code]openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new[/code]

and enter your old passphrase

Replace key
Backup and replace your private ssh key

[code]cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
rm ~/.ssh/id_rsa
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa[/code]

Set key permissions

[code]chmod 400 ~/.ssh/id_rsa[/code]

Leave A Comment