Related
Quick Links
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.
With its large number of demand, it is also available across otheroperating systemslikeLinux.
What is PuTTY?
However, your personal system runs on Windows.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
PuTTY enables X11 forwarding for those who require graphical applications.