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

  1. Backup your id_rsa file! Then,
  2. openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
  3. cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
  4. rm ~/.ssh/id_rsa
  5. cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa
  6. chmod 400 ~/.ssh/id_rsa

Removing a passphrase from an SSL server key

  1. Create a private key: openssl genrsa -des3 -out server.key 1024
  2. Generate a CSR: openssl req -new -key server.key -out server.csr
  3. 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

Got anything to say? Go ahead and leave a comment!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">