• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Updating SSH private keys to work with OS X 10.9 MavericksEdit

Created 10/23/2013, updated 10/14/2017
$ 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
  • ssh
  • macos
  • mavericks
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).