Skip to content

Instantly share code, notes, and snippets.

@raul-carvalho
Created January 24, 2018 18:24
Show Gist options
  • Save raul-carvalho/cb0c42b22b020097289701ee1e9a40bc to your computer and use it in GitHub Desktop.
Save raul-carvalho/cb0c42b22b020097289701ee1e9a40bc to your computer and use it in GitHub Desktop.
PPK to PEM MAC
#You can also convert the key using putty for Mac via port or brew
sudo port install putty
#or
brew install putty
#This will also install puttygen. To get puttygen to output a .PEM file:
puttygen privatekey.ppk -O private-openssh -o privatekey.pem
#Once you have the key, open a terminal window and:
ssh -i privatekey.pem user@my.server.com
#The private key must have tight security settings otherwise SSH complains. Make sure only the user can read the key.
chmod go-rw privatekey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment