Created
February 22, 2014 20:22
-
-
Save mingomax/9161766 to your computer and use it in GitHub Desktop.
Updating SSH private keys on OSX Mavericks 10.9
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
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