Updating SSH private keys to work with OS X 10.9 MavericksEdit
$ 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