cd c:\"Program Files\Oracle\VirtualBox"Assuming that virtal machine's ip is 10.0.2.19
VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,10.0.2.19,22"Now from the host virtualbox is running on, ssh its name or ip on port 2222 and you will be connected to 10.0.2.19
sudo dpkg-reconfigure virtualbox