Convert .ppk to .pem
If you’re working on a Mac, you may have encountered the problem of trying to use ssh with a .ppk (PuTTY key file). You can easily convert this file to a Mac friendly .pem file.
- Install Homebrew
- Install putty, which also installs puttygen:
brew install putty
- Generate .pem file:
puttygen keyfile.ppk -O private-openssh -o keyfile.pem
- Change permissions:
chmod go-rw keyfile.pem
- Connect:
ssh -i keyfile.pem username@server
Enjoy