Summary

PuTTY is a versatileterminal emulator, initially designed forWindows.

To date, its one of the most popularSSH clients for Windows.

PuTTY is not limited to Windows only.

Terminal window showing the manual page for the Mutt email client on Linux

With its large number of demand, it is also available across otheroperating systemslikeLinux.

What is PuTTY?

However, your personal system runs on Windows.

Tux mascot jumping from Windows to Linux.

Then what do you doshould you installLinux?

Not so fastPuTTY is here to save the day for you.

PuTTY lets youconnect to remote servers and devicesusing various protocols like SSH and Telnet.

Article image

Hannah Stryker / How-To Geek

Using PuTTY you canremotely open GUI applicationsover SSH servers.

You might wonder why PuTTY SSH matters sinceLinux distrosalready haveSSH capabilities and OpenSSHin their terminals.

Additionally, saving your different SSH sessions is easier with PuTTY.

command to enable universe repository

Manualediting of the SSH config fileis challenging in command-line toolslike the default Linux terminal.

you might save SSH connections using the PuTTY graphical interface.

It makes debugging and connection to raw sockets and serial ports a lot easier, as well.

command to update system access and rights

How to Install PuTTY

Most Linux distributions do not come with PuTTY pre-installed.

However, it’s possible for you to install PuTTY from thedefault repositoriesof Linux distributions.

For example, in Debian-based distros, PuTTY is available inside the universe repository.

command to install Putty

We can also install PuTTY on Linux using commands through the terminal.

To install PuTTY on Ubuntu, enable theuniverse repository.

The PuTTY package is located inside this repository.

PuTTY open from Application Manager

Run PuTTY from app manager or terminal.

Linux distributions come with pre-installed GUI-based software centers.

you might effectively manage and install multiple software through software centerswithout any need toremember Linux commands.

command to install synaptic package

Unfortunately, PuTTY is not available in the default software store on Ubuntu 22.04.

If you’ve installed the GNOME Software Center on Ubuntu, you might easily install PuTTY from there.

First, drop in the Synaptic package manager via the command line.

opening synaptic package manager

Open Synaptic using the command line or software manager.

Inside the Synaptic search for the “putty” package.

In the main window, locate the PuTTY package.

search for the putty pacakge

Check the box next to the “putty” package and right-click to mark it for installation.

you’re able to also mark PuTTY-related tools for installation if needed.

Once you’ve marked the package for installation, press the “Apply” button.

select the putty and its related package tools

Review the list displayed by Synaptic to ensure that it includes PuTTY and its dependencies.

Click “Apply” to begin installation of PuTTY and its dependencies.

You’ll see a progress bar indicating the PuTTY installation.

apply changes to install

Wait for it until it finishes.

After the successful installation of PuTTY, a confirmation message will appear.

In Fedora, you’re free to install PuTTY as aFlatpakapplication directly from theGNOME Software Center.

check the display summary of packages to be installed

This app store provides you with a friendly interface for managing software packages via the dnf package manager.

Like Fedora, you’re free to also directly install PuTTY onManjarofrom the Pamac package manager.

Pamac is the graphical front-end for the pacman package manager.

isntallation process begin

It can enter the official Manjaro repositories and the Arch User Repository (AUR).

These package managers contain binary packages that are ready to install with a single command.

However, you might also install software directlyfrom the source code.

Putty GUI opened

Installing software from source code has some advantages over using package managers.

This can include security patches or new features that are not yet available in the binary packages.

you might also control the features and options to install.

command to update the system repositories

ensure your system has the necessary build tools and dependencies installed for source code installation.

PuTTY is built using CMake.

So you’ll need a C/C++ compiler, make, CMake, and other development libraries.

command to install esential build tools

Now download the PuTTY source code using thewgetcommand.

you’re free to also directly download thetarfileof PuTTYsource code from the website.

This will separate the build files from source code.

downloading tar file directly from official site

Next, navigate to build directory:

Use CMake to configure the build.

When using cmake (.)

single dot, the project configures inside the same folder containing the source files.

download the tar file using wget command

While using cmake (..) double dot, the project is configured in a separate folder for building.

This is a more organized way to use CMake for building projects.

After the configuration is complete, build PuTTY using themakecommand.

extract the tar file of putty source

Themakecommandwill compile the PuTTY source code.

It also updates thesystem’s PATH environment variabletoinclude the directorywhere PuTTY was installed (/usr/local/bin).

This indicates that PuTTY has a dependency on the GTK (GIMP Toolkit) library.

putty source directory opened

Your system does not have the necessary development files for GTK installed.

To fix this error load the GTK development package on your Linux system.

You canrun local scripts on a remote Linux serveror open a GUI tool remotely.

build directory created and navigated to it

you’re able to also use PuTTY toshare files across local and remotecomputers.

PuTTY can also execute commands on a remote machine.

It can share a remote computer’s screen on your local unit, and securely enter to remote computers.

run cmake command

PuTTY enables X11 forwarding for those who require graphical applications.

run make command

run make command system wide

launch putty from terminal

putty command not found error

fatal error gtkgtk.h Nosuch file or directory

command to install libgtk dev library