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
- Download PuTTY from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html (putty.exe is enough)
- Save the download on the desktop for quick access.
- Double-click on the putty.exe program
- Then on the following screen, enter your SSH information:

- Click on Open to start a SSH session.
- 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”.
- Once the SSH Connection is open, you should see a terminal prompt asking for your login

- 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.
- “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”
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
Hi raghu,
Use the ip address 127.0.0.1 and port 2200 in Putty to connect to the VM 🙂
ip address 127.0.0.1 and port 2200 also failed 🙁
I am getting connection refused error when tried with ip address 127.0.0.1 and port 2200
ip address 127.0.0.1 and port 2200 is getting access denied for me in the passaword
Can you please help? We all are facing same issue!
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 🙂
Still I am faicing the same issue.
Is it because I face the issue in VM stating – verr_file_not_found virtualbox windows 7
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
unable to connect to any of the ip’s need help.
Please use ifconfig in you vm and use the IP address from ens33.
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.
Contant me on Udemy 🙂
Settings in putty I meant, because the error is from putty that says connection timed out.