convert ppk to pem
Convert PPK to PEM format.
- Open Puttygen.
- Click Load in the Actions section.
- Select the PPK file you wish to convert.
- Go to the Conversions menu and select Export OpenSSH key.
- Click Yes to convert key without a password.
- Name your private key and save it with a .pem extension.
- Click Save.
Your pem file should begin with “—–BEGIN RSA PRIVATE KEY—–” and ends with “—–END RSA PRIVATE KEY—–.”
You can also use puttygen in Linux. Install it first.
$ sudo apt-get install putty-tools
Convert your key.
$ puttygen yourkey.ppk -O private-openssh -o yourkey.pem
SSH to your server.
$ chmod 400 yourkey.pem
$ ssh -i yourkey.pem ec2-user@server-ip