Skip to content

Instantly share code, notes, and snippets.

@abdollar
Created May 24, 2013 20:37
Show Gist options
  • Select an option

  • Save abdollar/5646361 to your computer and use it in GitHub Desktop.

Select an option

Save abdollar/5646361 to your computer and use it in GitHub Desktop.
protect private ssh key
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