<link href="https://fonts.googleapis.com/css?family=Roboto:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=swap" rel="stylesheet"/>
2 minutes reading time (313 words)

Use Putty with Existing SSH Keys on Windows

How to convert an existing Open SSH private key file to a Putty Private Key file (ppk) for use with Putty on Windows.  

Putty uses a different SSH key file format from Open SSH, Putty Private Key file (ppk). To use a private key created using OpenSSH with Putty, you will first need to convert it to a .ppk file using PuTTYgen.

Install PuTTY and PuTTYgen

Convert existing private key

Convert an existing private key using PuTTYgen

Open PuTTYgen
Select the key type e.g. ECDSA
Conversions - Import Key

Browse for your Open SSH private key file and enter the passphrase when prompted.

Save the private key to C:\Users\Username\.ssh as a Putty private key .ppk file

Save private key

Connect using private key

Connect to server using Putty private key

Open Putty

Session
Enter host name or IP address
Connection type SSH, port 22

Connections - SSH - Auth
Browse for Putty private key file .ppk

You can also save the login username, which means you will only get prompted for the private key passphrase when connecting. The username will be automatically entered.

Connection - Data - Auto-login username

Click open to connect to the server

You will be prompted for the private key passphrase when connecting

Save Session

Enter a name for the session e.g. server-name, and save the settings.
You can load the session settings next time you open Putty.

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Monday, 17 March 2025
You can help support this website by buying me a coffee!
Buy Me A Coffee