Ubuntu – How to access to guest machine via ssh which has Bridged Adapter

networkingserversshvirtualbox

I'm sorry for the mistakes I've made, I'm not Englishman.

I have Ubuntu 13.10 and Virtualbox installed Ubuntu Server 13.10 (Bridged Adapter). Guest machine has nginx, mariaDB, php etc. – hence web server. So at the host machine I successfully connect to vm server through browser and everything works ok. Now I want to set up ssh connection between guest and host.
How can I implement it?

I think something tie with port forwarding and network type on guest, but I don't have enough knowledge to understand what I do wrong. Googling direct me to host-only network type on guest machine and configuring its IP to static instead of DHCP.
Please, help)

Best Answer

Connect to the IP address that the Ubuntu Server 13.10 has on your network.
On your server run $ifconfig eth0 this should give you the IP that the virtual network adapter is pulling from your network.

When you have the adapter in bridged mode it is going to act like a separate NIC so no port forwarding is necessary. It would be more complicated if you had it running in NAT mode.

Related Question