Created
April 19, 2017 14:47
-
-
Save prochafilho/9f4e5e29ac249697739cf32a3667b854 to your computer and use it in GitHub Desktop.
remove ssh passphrase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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