With VMware Workstation, how can I SSH from the host to a guest with NAT?

3

1

My host is Windows 7 with VMware Workstation 10. I am running an Ubuntu 12.04 guest that is connected to an NAT network. How can I set up the network so that I can SSH from the host to the guest? I assume it has to do with port forwarding?

Matt

Posted 2014-03-16T14:59:50.907

Reputation: 737

What's your current virtual network configuration? Do you have a network adapter attached to the NAT network? – Daniel B – 2014-03-16T15:21:46.663

@DanielB Yes, eth0 is connected to NAT on the guest. – Matt – 2014-03-17T00:45:08.417

Answers

3

VMware Workstation creates virtual interfaces on the host. One for the host-only network and one for the NAT network.

(This is one point where VirtualBox is different)

So you only need to determine the IP-address of the guest.

guntbert

Posted 2014-03-16T14:59:50.907

Reputation: 373

Do you mean the IP address of eth0 on the guest? – Matt – 2014-03-17T00:46:57.340

It works now. I don't know why it didn't before, even though I'm sure I tried that before. – Matt – 2014-03-17T00:49:01.847

I went through my command history... It turns out I was spelling my username wrong in the SSH command! – Matt – 2014-03-17T00:57:42.740