Connect with SSH using PuTTY to a remote host

PuTTY is an open source SSH and telnet client developed originally by Simon Tatham for Windows and UNIX systems. The purpose of PuTTY is to provide an easy way to connect with any server running an SSH daemon in order to give you the illusion to work on the remote system as if you were logged into. In this quick tutorial you gonna learn how to connect with ssh using PuTTY to a remote host.

Connect with SSH using PuTTY to a Remote Host

  1. Download PuTTY from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html (putty.exe is enough)
  2.  Save the download on the desktop for quick access.
  3. Double-click on the putty.exe program
  4. Then on the following screen, enter your SSH information:
putty_marclamberti
  1. Click on Open to start a SSH session.
  2. If this is your first time connecting to the server from this computer, you will see a dialog box telling you that the “host key is not cached in the registry”, just click on “yes”.
  3. Once the SSH Connection is open, you should see a terminal prompt asking for your login
ssh_login_marclamberti
  1. After having typed your login, you will be prompted to enter your password in the same way. Notice that your cursor will not move while you are typing for security reason.
  2. “Enter” and you are now logged into your remote host using SSH.
PS: For students who are enrolled into the course The Complete Hands-On Course to Master Apache Airflow set the host to 127.0.0.1 and the port to 2200 to be able to connect to the VM.
You may need to change the Adapter:

In the settings of the VM => Network => Adapter 1

Check “Enable Network Adapter” and set “Attached to” NAT.

Then click on “OK”

Liked it? Join the Patreon Community and get an access to exclusive content now!

14 thoughts on “Connect with SSH using PuTTY to a remote host”

  1. Hi Marc,
    i have downloaded the airflow machine as you specified. when double click the downloaded filed it got installed in VMware and run until ‘Localhost :’ display. when i am trying to connect using putty on my windows laptop using the ip 10.2.221.1 and port 22, it is failing to connect.

    Could you please guide me on this.

    thank you,
    Raghu

    1. marclamberti

      Hi raghu,
      Use the ip address 127.0.0.1 and port 2200 in Putty to connect to the VM 🙂

    1. marclamberti

      Hi Ajay,

      In the settings of the VM => Network => Adapter 1

      You check Enable Network Adapter and you set “Attached to” NAT.

      Then you click “OK”
      Retry with Putty and it should work

      Have a great day and sorry for the delay 🙂

  2. Still I am faicing the same issue.

    Is it because I face the issue in VM stating – verr_file_not_found virtualbox windows 7

  3. Hi, Marc! Please show it on screenshots.
    I do not see in the VM settings those options you are talking about.

    Here my settings:
    http://prntscr.com/rtg8ww

    NAT is selected by default there, but Putty (with address 127.0.0.1 and port 2200) says “Network error: Connection refused”

    Where is “Enable Network Adapter” and “Attached to” NAT I don’t understand…

    *Windows 10, if it matters

  4. It is showing connection refused. Is there any settings to be changed? Marc can you please help with this. None of the solutions above worked out for me.

  5. Settings in putty I meant, because the error is from putty that says connection timed out.

Leave a Comment

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

Scroll to Top