2015. 5. 12. 23:04

[VirtualBox] How to do access to local ubuntu using ssh

The goal of this guide is to show you how to setup preferences to do access using ssh to ubuntu.

 

Step 1. Open virtualbox preferences

If you select "File -> Preferences" or "Ctrl + G", you can see below image "VirtualBox - Settings"


 

Step 2. Add Host-Only Networks

Click "Network", "Host-Only Networks" and "+" which are in red box in below image.


 

Step 3. Check the Host-only Networks added

If you click "+" from above image, you can see "VirtualBox Host-Only Ethernet Adapter" which will be used for local network.



Step 4. Open "machine setting" to enable "Host-only Networks"

If you select "Machine -> Settings" or "Ctrl + S", you can see below image "Ubuntu - Settings"

 

 

Step 5. Check network setting for adapter1 and 2 which will be used for extra internet or host-only.

 


     Click "Enable Network Adapter" and select "host-only Adapter"



If you proceed step 1 to 5, you can see two ethernet like below.

 


If you proceed above all stpes, now you can use internet and you can access to local ubuntu using ssh.