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.
You might also like
There are several ways to know the current shell on which you are working. We will be using some shell commands to know in which Shell you are working on.
Looking to make a Live Ubuntu USB disk? then you have arrived at the right place. Here I will provide you direct download link to the Ubuntu ISO image, Linux
If you are using a Linux system in your home which does not need much security or you know there is no threat if you allow to run the sudo