In this post, we will cover how to install and use putty on Ubuntu Linux.
System Admins who had worked on Windows Operating system, surely they have used putty software to ssh UNIX like systems. When they migrated to Ubuntu Desktop , they might require putty to manage their UNIX and Linux systems.
PuTTY is the most popular SSH client. It supports flexible terminal setup, mid-session reconfiguration using Ctrl-rightclick, multiple X11 authentication protocols, and various other interesting things not provided by ssh in an xterm. Putty also supports various protocols like Telnet, SCP, rlogin, SFTP and Serial.
- Pre-Installed Ubuntu System
- Sudo User with admin rights
- Internet Connectivity
Note: We have tested below procedure of installing putty on Ubuntu 22.04 / 20.04 system.
Putty can be installed either from command line or synaptic package manager.
Installing Putty from Command Line
Putty package and its dependencies are available in the default package repositories of Ubuntu 22.04/20.04. So, its installation is quite easy.
Open the terminal on your ubuntu system and run below apt commands to install putty.
$ sudo apt update$ sudo apt install putty -y
Alternate way to install putty is via Synaptic Package Manager GUI, In case synaptic is not installed the first install it via below command,
$ sudo apt install synaptic -y
Once the synaptic is installed, access the Synaptic Package Manager, search synaptic from Activity as shown,
click on “Synaptic Package Manager” icon. It will prompt you to enter your user’s password.
Now search putty,
Click on Search
choose putty and Select ‘Mark for Installation‘ option & then click on apply.
Launch Putty SSH Client
Search putty from Activity as shown below,
Click on PuTTY SSH Client
Enter Remote Server’s IP Address or Hostname.
Click On Accept , then it will ask for User Name & Password as shown below :
Use Putty to access Cloud VM
Let’s suppose we want to access our public cloud VM (virtual machine) via putty using their private SSH keys, so for that refer the below steps:
1) Access the Putty
2) Enter User Name and External IP address of your Cloud VM in ‘Host Name’ field
Here User name is the same user for which SSH keys are generated. By default SSH keys are generated in .pem format and putty don’t accept .pem ssh private keys, so it is recommended covert .pem ssh keys into .ppk format. One of the easiest way to convert keys into .ppk is via PuTTYgen utility, example is shown below. Puttygen utility will be installed automatically when we install putty.
$ puttygen my-ssh-key.pem -o my-ssh-key.ppk
3) From SSH Tab, choose ‘Auth’ and then browse .ppk format ssh key,
Now click on Open to start the SSH session with cloud VM, After the successful Connection to the Cloud VM, run the commands and other tasks that you want to do and to come out of VM or disconnect from VM type exit command.
That’s all from this guide, please do post your queries and feedback in below comments section.