Access Linux using PuTTY from Host OS
Here are the steps for how to access Linux virtual machine using PuTTY or any other SSH Client from your Host OS. The Network between Host and Guest can be any Bridged, Host-only or even NAT. If you don’t have Linux virtual machine here are steps for How to create one .
2. Any Linux eg. Linux(Ubuntu 14.04 LTS)
- Open Terminal in your Linux
- Check SSH server is running or not “netstat -ntlp | grep 22”
- If not Install SSH Server for Ubuntu “sudo apt-get install openssh-server”
- Now check Network between Host and Guest
It can be
- Bridged Adapter
- Host-only Adapter
For Bridged or Host-only
If it is Bridged or Host-only you need to do nothing more, even if it is not you can create an extra one if you want.
1. Go to terminal type “ifconfig” and note the IP Address
2. Open PuTTy and Enter the IP Address eg 192.168.56.101 and port 22. Click Open
3. Enter login and password of your Linux Machine and you are ready to go
For NAT Adapter
1. If it is NAT you need to configure port forwarding for this click port forwarding
2. Enter rule name, Host port any port no which is free (eg 2222,5120), Guest port 22 and click Ok
3. Open putty and hostname as localhost and the above host port no 5121 and click open
3. Enter login and password of your Linux Machine.