Created
May 24, 2013 20:37
-
-
Save abdollar/5646361 to your computer and use it in GitHub Desktop.
protect private ssh key
This file contains hidden or 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
| mv ~/.ssh/id_rsa ~/.ssh/id_rsa.old | |
| openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa | |
| chmod 600 ~/.ssh/id_rsa | |
| rm ~/.ssh/id_rsa.old |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment