• Subcribe to Our RSS Feed

Removing the Passphrase from SSH Keys

Jan 17, 2012 by     No Comments    Posted under: Tech

I never can remember this:
Removing a passphrase from your id_rsa key

Backup your id_rsa file! Then,

openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
rm ~/.ssh/id_rsa
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa

Removing a passphrase from an SSL server key

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr


Remove passphrase from key:

cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

For more details:

http://www.akadia.com/services/ssh_test_certificate.html
http://www.thinkplexx.com/learn/howto/security/ssl/remove-passphrase-password-from-private-rsa-key