How To Install & use Putty in 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 Windows 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.

In this article we will go through installations steps of putty in Ubuntu 14.04 / 16.04 LTS / 18.04 LTS

Step1) Issue the below Command to install Putty

Open the terminal on your ubuntu system and run below apt-get command to install putty ( Putty Debian package available in the default package repositories).

$ sudo apt-get install putty -y

Alternate way to install putty is via GUI ( Synaptic Package Manager), In case Synaptic is not installed the first install it via below command,

$ sudo apt-get install synaptic -y

Once the synaptic is installed then open the Synaptic Package Manager , search putty as shown below :

Synaptic-putty

Click on putty  Select ‘Mark for Installation’ option & then click on apply.

Step:2 Now Access the Putty SSH Client

access-putty

Click on PuTTY SSH Client

putty

Enter Remote Server’s IP Address or Hostname.

accept-keys-ssh

Click On Accept , then it will ask for User Name & Password as shown below :

ssh-putty

How to Use Putty to access Cloud VMs via Keys

Let’s suppose you want to access your public cloud VMs 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

Cloud-VM-User-Name-IP-Putty

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,

SSH-Private-Key-Putty-Linux

Now click on Open to start the SSH session with your cloud VM, After the successful Connection to your 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 share your feedback and comments.

25 Responses

  1. Ken Hill says:

    I am having problems using PuTTY on Ubuntu OS. I wish to use the device /dev/ttyUSB0 in a session. I am getting a fatal error with the statements
    Unable to open connection to:
    Unable to open serial port:

  2. Johnny P. says:

    Exist the possibility to have and GUI (like TeamViewer) and also to use Putty in the same time ? I also have possibility to open in the same time more connection (to connect in the same time on a master PC and slave PC for example) ?
    Your answer is very important for me, because I installed Ubuntu 17.10 on 2 PC’s, and I use on-board video graphic card and from this reason doesn’t allow me to use TeamViewer and I search more safety and lighter possibility to have remote control on both PC’s.

    Thanks in advance for support and advice.

  3. Martin says:

    You can paste in to putty by connecting a mouse with a wheel by putting the curser in putty and press once on the wheel and it has now pasted.

  4. Muqorobin says:

    I am using ubuntu 16.04, but Can not login using putty. If I am using terminal, I can login normally. Do you have experience like that?

  5. Emmanuel Gordon says:

    Thanks. It worked.

  6. Magan abdi says:

    I can’t see My newly installed E1/T1 on wired network adapters on Ubuntu, but I can see it when hwinfo -short command issued, sorry i am new to linux/unix op systems, please help i need to give an ip address.
    Thanks

  7. Nadun says:

    Ubuntu Putty do not want to say to one Termianl Type

    ssh [email protected]

    For example – ssh [email protected]

  8. NEKO BLACK says:

    in ubuntu with CTRL+shift +V

  9. jp says:

    ubuntu putty doesn’t allow ctrl+v because linux terminals don’t
    Press Ctrl and right click in your putty ui => Copy All

  10. Muhammad Kamran says:

    That was the site fruitfull for me;-) I have easily installed putty on ubuntu 14 (32bit)

  11. Tony Q. King says:

    How does one do a paste from the clipboard in Putty?
    Ctrl-V and Ctrl-Shift-V do not work.
    The Windows version of Putty has no problems with this.

  12. RoseHosting says:

    Nice post. But why would you need to install putty, it’s just a frontend for ssh. It’s much easier to use ssh from the command line.

    • Keith says:

      Hi. Putty is more than just ssh. A good use is to use the serial option to “console in” to cisco devices. It also has a great Rlogin option.

      • Cristian says:

        wondering if anyone can help. I am completely new at Ubuntu. Currently running Zorin Core and I’m trying to connect my cisco lab to my PC using puTTy using a Serial connection. Now when I select “Serial” , the “serial line” tab is automatically filled out: /dev/ttyS0.
        I hit open and get an error saying : Unable to open connection to :
        Unable to open serial port.
        What is it I need to do to make make that serial connection communicate with my client on the PC? Appreciate any help I can get.

  1. July 14, 2014

    […] PuTTY is the most popular Windows 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. …Read More […]

Leave a Reply to David Cancel reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest