Follow these simple steps: sudo apt-get install putty-tools puttygen file.ppk -O private-openssh -o file.pem. share | improve this answer | follow | answered May 17 '16 at 22:05. user801247 user801247. Users can connect via PuTTY to remote servers from local systems using the newly created .ppk files on both Windows and Unix. 1,603 12 12 silver badges 11 11 bronze badges. puttygen server1.ppk -O private-openssh -o server1.pem Step 3 â Change the .pem file permissions. This how to will describe how to use PuTTYgen to convert Amazon Web Services Key Pair files (.pem) to the PuTTY Private Key file (.ppk) After that it will explain how to load this key file into Pageant so you donât have to remember where you saved it in the future.. To follow this guide youâre going to need to download the Windows installer for everything except PuTTYtel and install it. Convert a .ppk private key (Putty) to a base64/pem private key for OpenSSH or OpenSSL. Install the key. As suggested in AWS Docs, PuTTYgen is the preferred tool for converting PEM files to PPK(PuTTY Private Key) files.. This is because PuTTY does not natively support the private key format (.pem) generated by Amazon EC2. Launch the utility and click Conversions > Import key. $ sudo puttygen pemKey.pem -o ppkKey.ppk -O private. How convert AWS .pem key to putty .ppk key for that we have lots of software available, here am going to show with the help of PuTTYgen PuTTY does not natively support the PEM format that AWS uses, so you need to first convert your PEM file to a PPK file (PPK = PuTTY Private Key). This article will help you in converting .pem to a .ppk file using PuTTYgen. Windows 10. In this blog we will look into converting a pem file into a ppk file. Steps to convert a .ppk file to a .pem file. Name the privateKey.ppk file and save as type .ppk (PuTTY Private Key Files), by entering the .ppk extension. Now, lets set the pem file to have the proper permissions: # chmod 400 awsprivatekey.pem Access AWS Server. Installing the key is equivalent to copying it in your ~/. If on the other hand you'd like to convert a .pem to .ppk file via the command line tool puttygen, I did come across this solution on SO in this Q&A titled: How to convert SSH keypairs generated using PuttyGen(Windows) into key-pairs used by ssh-agent and KeyChain(Linux). key.ppk: the original file name/path.-O private-openssh: the output type.private-openssh is used to save an SSH-2 private key in OpenSSHâs format.-o key.pem: the output file name/path. But today I accidently deleted my PPK file and had to regenerate it. excerpt $ puttygen keyfile.pem -O private -o avdev.ppk For the public key: 1) The first step is download puttygen.exe from here onto a Windows machine. Introduction. Converting the .ppk to PEM. Another option is to convert the ppk format to an OpenSSH format using the PuTTygen program: Run the puTTygen program. PuTTYgen will display a window to load your key. PuTTY cannot consume this key file as-is. Connect Using PuTTY. There is no need to install it, simply save it in a location where it can be located easily. If you want to convert the key into.ppk or.pem you need to install puttygen tool in your system then you can convert the keys.. 1) converting.pem key to.ppk key need to follow the below command.. #puttygen (.pem key path) -o (destination path with keyname.ppk). Select the option âRSA (RivestâShamirâAdleman). With puttygen on Linux/BSD/Unix-like. ssh directory. puttygen puttykey.ppk -O private-openssh -o privatekey.pem; How to convert PPK file to PEM file? Fortunately, PuTTYgen converts PEM key files to PPK format. You can convert your Putty private keys (.ppk) to base64 files for OpenSSH or OpenSSL. Click on Load button to load the PEM file, what you have already on your System. Setp 1: Deciphering the key (if pertinent) If your private key is encrypted, e.g. You must convert .pem to .ppk file before attempting to connect to your instance using PuTTY. We can also only download PuTTYgen from same download page. Set the read-only permissions to the owner of the file, remove any permission to group and other. puttygen-window; The following window will open with options to the user who wants to generate. Otherwise ssh will refuse this key for use. 2. First of all Click on Start menu then > All Programs then > PuTTY then > PuTTYgen. PuTTYgen is also free to download and use. 2. PuTTYgen tool is used to generate the new key file(s) or convert the key file(s) to PPK â PuTTYâs own format. The conversion requires OpenSSL, OpenSSH, and Putty. Choose the .ppk file, and then choose Open. You can simply convert your key like this: puttygen mykey.pem -o mykey.ppk. Issue.