Ssh Access To Vmware Vm From Outside

Home » CentOS-Virt » Ssh Access To Vmware Vm From Outside
CentOS-Virt No Comments


I have a CentOS 7 host server, which hosts vmware vms with various Os. I want to reach a ubuntu 14.04 vm through SSH and x2go (ssh as well).

What I did.
1/ open a 2296 port in firewalld.
2/ add 2296=internalvmip:22 in tcp section of
/etc/vmware/vmnet8/nat/nat.conf (vmnet8 being the vms network)

From the host server I can SSH the vm, but from outside, a SSH -p 2296
user@hostserverip gives me a connection refused.

I tried a firewall-cmd –zone=external

but it does not change anything.

What am I missing ?