Short version
If I am running an Ubuntu guest VirtualBox VM from a Windows 10 host, what steps do I need to take to ssh
from a remote linux server into the Ubuntu guest VM?
_______________________
[ ]
[ Windows 10 ]
[ ___________________ ] ____________________
[ [ ]] [ ]
[ [ Ubuntu VM (guest) <----HOW?---- SUSE remote server ]
[ [__________________]] [___________________]
[_____________________]
Long version
I am confused because, AFAIK if I wasn't using an Ubuntu guest VM, and was instead using a real Ubuntu machine, I could just cat /etc/hosts
, find the IP address of local and then from remote just:
user@remote --ssh--> user@<local IP>
I already setup the ssh keys so that I can ssh from the Ubuntu guest into the SUSE remote server (i.e. the guest ~/.ssh/id_rsa.pub
is already stored in the remote ~/.ssh/authorized_keys
). I.e. I can already:
ssh -Y user@remote
Without difficulty, but I cannot do it the other way round simply because I have no idea what my guest's IP address is. And I already tried ssh
-ing with the IP addresses in "Connection Information" from the Ubuntu GUI.
Also to be clear:
guest VM is Ubuntu 12.04 LTS (64-bit)
VirtualBox settings mostly: default
Enable Network Adapter: NAT (cable connected, no port forwarding)
I have not set up an ssh server, but I am not sure it's necessary (?), this is my understanding so far.
So, given that I am running an Ubuntu guest VirtualBox VM from a Windows 10 host, what steps do I need to take to ssh
from a remote linux server into the Ubuntu guest VM?