Install Putty Key Generator from https://www.puttygen.com/download-putty. Install it on the local computer/laptop. Launch the program.
Click on Load button and select “All Files” option. Point to the directory where the private key was saved and then select the file.
Click on Open. You should see the below message :
Click OK on the pop-up message.
On the PuTTY Key Generator page, provide a key passphrase and confirm the passphrase as well. Then click the button to save Private key. Provide the location on the local machine and save the PPK format file.
The PPK formatted file should get saved. Close the PuTTY Key Generator application.
Install Putty from https://www.putty.org/. Launch the client. Provide the IPv4 Public IP Address of the instance.
Provide the Private key we configured in the earlier step. Under Connection --> SSH --> Auth, browse to the PPK formatted private key.
Click Open. The instance might take a few minutes to get ready for accepting SSH connections, so please be patient.
For Linux and Mac, you can directly SSH to the AWS instance using the private key OR use any another SSH client.