How To Install PuTTY In Linux And Use It As An SSH Client?

How To Install PuTTY In Linux And Use It As An SSH Client?

Earlier I published how to connect to a Linux PC over SSH using the command line. This article is on using PuTTY which is a UI based Free and Open-source Software (FOSS) application to connect to a PC using SSH, Telnet, rlogin, SCP etc.

Originally this software was written for Microsoft Windows later get ported to other operating systems also. Mostly it is used as an SSH client, especially for Windows operating system. Most of the Linux distributions come with SSH client preinstalled in it.

Why to use PuTTY over SSH command line?

So, you may think what encourages us to use PuTTY in Linux?

First of all, its GUI that makes it more userfriendly especially for the command line new users.
Apart from SSH, PuTTY can also be used to connect to serial ports and raw sockets, Telnet, SCP and many more.

I hope this is a convincing answer to proceed further to see how to install and use the application.

How to install PuTTY on Linux?

Use the following commands in Debian package management distros such as Ubuntu, Linux Mint etc. and their derivatives –

sudo add-apt-repository universe
sudo apt update
sudo apt install putty -y

For CentOS or RedHat or any rpm package management Linux distros, use the following command:

sudo yum install putty -y

or use the following command on Fedora Linux to install PuTTY:

sudo dnf install putty -y

Use the following command if you are using a Pacman package management based Linux distribution like Arch Linux –

sudo pacman -s putty

Use the following commands if you want to install it from the source –

tar -xvf putty-0.73.tar.gz
cd putty-0.73/
./configure
sudo make && sudo make install

You can download the latest version of PuTTY from here. Look at the snapshot below it shows the graphical interface of PuTTY. By default, SSH is selected you can also use it for Telnet, Rlogin, or serial ports and raw sockets.

How to use PuTTY as an ssh client?

There are some prerequisites to use PuTTY as your ssh client the first one is your server that you are going to connect with, must be installed and configured with an ssh server application. And the next thing is that you must have server credentials so that you can access it from the PuTTY terminal. If you don’t have ssh server application you can install it in your server by using the following command –

sudo apt-get install openssh-server

and then make sure it is running actively by using the given command –

sudo service ssh status

Now if ssh server is working perfectly then it will display output something like this-

So you have to enter your server IP or hostname to get connected with it. I will connect with the localhost. SSH uses port 23 to establish a connection. look at the image below –

Now once you click on open it will establish a connection with the server and prompt you for server login and password. Enter your username and password and then press enter to get proceed.

Similarly, if you want to establish a connection with telnet you can use telnet command in Linux or on PuTTY, simply select the telnet option and then enter your hostname or IP address of the server and then click on connect. Again it will prompt you to enter username and password respectively now enter it to get access to that server.

Well, that’s all for now on using PuTTY as an ssh client on Linux. If you have a query on this topic you can write to us in the comments section below.

Previous How To Create An ISO Image In Linux Using Terminal?
Next How to Compile / Build and Run WICED SDK on a WICED Board

About author

You might also like

Linux Topics 0 Comments

How to Find Exact Name of A Package by Using apt-cache in Linux?

In a debian based package management system the apt-cache is a low-level tool to manipulate and obtain information about packages from apt’s internal database. It creates a repository of information

Linux Topics 0 Comments

File Ownership And Permissions In Linux/Unix

Linux and Unix are multi-user operating systems that means different users can access the operating system at a time and can use system resources simultaneously. So the files created by

Linux Topics 0 Comments

How To Create An ISO Image In Linux Using Terminal?

Iso image files are distributed as a single downloadable file for bootable OS, games etc. It is important to know how to create an iso file from a directory or

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply