Skip to content

Instantly share code, notes, and snippets.

@MoritzBuetzer
Created July 7, 2017 08:08
Show Gist options
  • Save MoritzBuetzer/6ed530db243915f4e74fe9dda9c03c9a to your computer and use it in GitHub Desktop.
Save MoritzBuetzer/6ed530db243915f4e74fe9dda9c03c9a to your computer and use it in GitHub Desktop.
Remove passphrase from ssh key
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
rm ~/.ssh/id_rsa
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment