puttygen command not found

In this troubleshooting guide we learn how to fix puttygen command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

puttygen: command not found

or when using sudo you get the following error message

sudo: puttygen: command not found

Solutions to puttygen: command not found

How To Fix puttygen: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu puttygen is provided by putty-tools package.

putty-tools is:

This package provides several command-line tools from the PuTTY suite that allow various kinds of secure interaction with remote systems.

Plink (PuTTY Link) connects to a remote system via SSH, Telnet, or rlogin, and either starts an interactive session or runs a batch process. It supports the usual SSH features like port forwarding, X11 forwarding, SOCKS, and compression.

PSCP (PuTTY Secure Copy) transfers files securely between systems using an SSH connection. It works with both SSH protocol 1 and protocol 2.

PSFTP (PuTTY SFTP client) transfers files securely between systems using the SSH file transfer protocol, which is specific to SSH protocol 2. In interactive mode its interface is much like the traditional Unix FTP client, although it can also operate in batch mode.

PuTTYgen generates SSH public and private key pairs in any of a number of formats, including those usable by PuTTY, OpenSSH, and ssh.com.

psusan (pseudo-SSH for untappable, separately authenticated networks) is a server program that behaves like the innermost “connection” layer of an SSH session, without the two outer security layers of encryption and authentication. It can be used to add SSH-like amenities to channels where you were already prepared to run a bare shell session.

To fix this problem, we can install more using the command below.

sudo apt-get -y install putty-tools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install putty-tools.

sudo apt -y install putty-tools

Or if you have aptitude installed you can use the following command.

sudo aptitude install putty-tools

Summary

In this tutorial we learn how to fix puttygen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.