Skip to main content

I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the the VB is just weird. I can't work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your Linux. If not, install it sudo apt install ssh.
  2. Power downoff the OS.
  3. Now on your VB go to settings->network->on adapter 1Settings -> Network -> on Adapter 1 choose host only adapterHost-only adapter->click okOK.
  4. Now start your OS. Run ifconfig;ifconfig; now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only-only adapter is that your guest OS won't have access to the wider network (eg the Internet).

If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird. I can't work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your Linux. If not, install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfig; now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons, the VB is just weird. I can't work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your Linux. If not, install it sudo apt install ssh.
  2. Power off the OS.
  3. Now on your VB go to Settings -> Network -> on Adapter 1 choose Host-only adapter->click OK.
  4. Now start your OS. Run ifconfig; now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host-only adapter is that your guest OS won't have access to the wider network (eg the Internet).

If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

deleted 175 characters in body
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

I was struggling with the same issue. After finally being able to solve the issue I HAVE to post it online so that this is of some help to the other novices around. I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird.. I cantcan't work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your linuxLinux. If not, install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfigifconfig; now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

--EDIT If If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

I was struggling with the same issue. After finally being able to solve the issue I HAVE to post it online so that this is of some help to the other novices around. I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird.. I cant work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your linux. If not install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfig now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

--EDIT If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird. I can't work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your Linux. If not, install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfig; now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

Adding a solution that addresses the original post's "disadvantage" of not being able to connect to the internet from a guest VM.
Source Link

I was struggling with the same issue. After finally being able to solve the issue I HAVE to post it online so that this is of some help to the other novices around. I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird.. I cant work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your linux. If not install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfig now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

--EDIT If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

I was struggling with the same issue. After finally being able to solve the issue I HAVE to post it online so that this is of some help to the other novices around. I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird.. I cant work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your linux. If not install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfig now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

I was struggling with the same issue. After finally being able to solve the issue I HAVE to post it online so that this is of some help to the other novices around. I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons,the VB is just weird.. I cant work unless it is on a proper terminal). Anyway,

  1. Make sure ssh client is installed on your linux. If not install it.
  2. Power down the OS.
  3. Now on your VB go to settings->network->on adapter 1 choose host only adapter->click ok.
  4. Now start your OS. Run ifconfig now the inet address is your IP.
  5. Use this and run it on your putty. Login with your credentials.

The only disadvantage of using host only adapter is that your guest OS won't have access to the wider network (eg the Internet).

--EDIT If you also need your VM to have internet access, leave Adapter 1 as NAT and enable Adapter 2, configured as a Host-Only adapter. This will allow your VM to connect to the internet using NAT as well as make a local connection to your Host using Host-Only.

Source Link
Loading