how to enable SSH into Linux VM from outside network
Posted: 24. Aug 2013, 09:26
I'm pretty new to Virtual Box and networking, so I apologize if the answer to my question is obvious.
I just created a new VM on Virtual Box running CentOS 5.9, the network is configured with NAT.
I use /sbin/ifconfig to get my ip address under eth0: ipaddress but whenever I try to throw that ipaddress in an ssh from an outside network it times out.
I can ssh into the guest system from my internal network if I bridge the network connection, but I read that it has to be NAT in order for ssh to work from the outside?
I've tried googling around but I couldn't find a direct answer. What other setups do I need to do?
All help is appreciated! Thank You!
I just created a new VM on Virtual Box running CentOS 5.9, the network is configured with NAT.
I use /sbin/ifconfig to get my ip address under eth0: ipaddress but whenever I try to throw that ipaddress in an ssh from an outside network it times out.
I can ssh into the guest system from my internal network if I bridge the network connection, but I read that it has to be NAT in order for ssh to work from the outside?
I've tried googling around but I couldn't find a direct answer. What other setups do I need to do?
All help is appreciated! Thank You!