10.9: Updating SSH private keys

Feb 18, '14 07:00:00AM

Contributed by: Tetonne

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
The source of this hint.

[crarko adds: I haven't tested this one. At least not yet. The solution seems to come from a question asked on StackExchange.]

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2014021602064833