[CentOS-virt] ssh access to vmware vm from outside
Eric Tagtick
tagtick at gmail.com
Sun Feb 21 10:25:23 UTC 2016
Hi,
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 at hostserverip gives me a connection refused.
I tried a
firewall-cmd --zone=external
--add-forward-port=port=2296:proto=tcp:toport=22:toaddr=internalvmip
but it does not change anything.
What am I missing ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20160221/1c8c0269/attachment.html>
More information about the CentOS-virt
mailing list