Skip to content

Instantly share code, notes, and snippets.

@mingomax
Created February 22, 2014 20:22
Show Gist options
  • Save mingomax/9161766 to your computer and use it in GitHub Desktop.
Save mingomax/9161766 to your computer and use it in GitHub Desktop.
Updating SSH private keys on OSX Mavericks 10.9
Here is a method for updating SSH private keys to work with OS X 10.9 Mavericks, using Terminal commands.
cd /Users/nameofuser/.ssh
cp id_rsa{,.bak}
chmod +w id_rsa id_rsa.pub
openssl rsa -in id_rsa -out id_rsa # decrypt in place
openssl rsa -in id_rsa -aes256 -out id_rsa # encrypt in place
ssh-keygen -y -f id_rsa > id_rsa.pub # regen public key
chmod 400 id_rsa id_rsa.pub
#source
#http://apple.stackexchange.com/questions/106107/cannot-unlock-password-protected-ssh-key-in-os-x-mavericks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment