How to Convert OpenSSH keys to Putty (.ppk) on Linux

PuTTYgen is a key generator for creating SSH keys for PuTTY. PuTTYgen is comparable in certain respects to the ssh-keygen tool. PuTTYgen can create public and private key pairs (in .ppk file format). In addition, PuTTYgen can also be used to convert keys to and from other formats. On Windows, PuTTYGen is a graphical tool. A command-line version is available for Linux.

When you run puttygen, it does three things. Firstly, it either loads an existing key file (if you specified keyfile), or generates a new key (if you specified keytype). Then, it optionally makes modifications to the key (changing the comment and/or the passphrase); finally, it outputs the key, or some information about the key, to a file.

How to Convert OpenSSH keys to Putty (.ppk) on Linux

 

How to use puttygen

On Arch Linux its simple…

pacman -S putty

 

On RHEL/Centos:

yum install putty

 

Fedora:

dnf install putty

 

Debian/Ubuntu try…

apt install putty-tools

 

Then cd to the path of key(s):

puttygen keyname -o keyname.ppk

Make sure you’ve replaced the “keyname” with your private key filename.

 

Reference:
https://www.ssh.com/ssh/putty/ – Putty official page.
https://www.ssh.com/ssh/keygen/ – ssh-keygen tool.
https://www.ssh.com/ssh/putty/linux/puttygen – Command line.
https://www.ssh.com/ssh/putty/windows/puttygen – PuTTYgen Windows.

 

Also, check out Remmina (supports RDP, SSH, VNC and more)

 

First published: May 16, 2013 | Last updated: Jan 4th, 2023. 

Tags: , ,

Comments from our Members

  1. I’m confused by what these ppk files actually are.

    Will it help me jump into an SSH session without typing credentials or is this similar to SSH keys but specifically for PuTTY? I’ve always seen PuTTYgen when after installing but never actually look at it.

Stop losing users to slow load times.

Blazing-fast, custom-configured NVMe Linux hosting.

Don't guess if your server is fast enough. Know it. Get a free performance audit of your current setup.

This blog is hosted by StackLinux, our parent company. 99.99% uptime.

Start Your Free Server Audit

You write the code. We'll manage the server.

Fully managed Linux hosting built for absolute speed.

Ditch the server maintenance headaches. Our experts custom-configure high-performance NVMe Linux servers specifically for your needs. Try us out. Your first month is entirely on us.

This blog is hosted by StackLinux, our parent company. 99.99% uptime.

Claim Your 30 Free Days

30 days of NVMe Linux hosting. $0 down.

Risk-free migration and a money-back guarantee.

We are so confident in our high-performance NVMe infrastructure that we'll audit your current server for free, migrate you without downtime, and give you 30 days to see the speed difference yourself.

This blog is hosted by StackLinux, our parent company. 99.99% uptime.

Deploy Free for 30 Days
Top ↑