Skip to content

Instantly share code, notes, and snippets.

@prochafilho
Created April 19, 2017 14:47
Show Gist options
  • Save prochafilho/9f4e5e29ac249697739cf32a3667b854 to your computer and use it in GitHub Desktop.
Save prochafilho/9f4e5e29ac249697739cf32a3667b854 to your computer and use it in GitHub Desktop.
remove ssh passphrase
# http://www.thinkplexx.com/learn/howto/security/ssl/remove-passphrase-password-from-private-rsa-key
# remove passphrase (prompt to type old passphrase)
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
# replace key
cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
rm ~/.ssh/id_rsa
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa
# set key permissions
chmod 400 ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment