Of course, my host IP is something like 10.0.0.20. I use putty 10.0.0.20 port 2222 to connect to the guest after issuing the 3 commands but failed. I issue a command netstatus -an and can't find a port 2222 is on the list. I think the 3 commands have not been set as expected. Or I miss something during setting the port forward. Does the port forward really work in virtual box to allow outside for connecting to the guest? Could you show me more detail how to set it up?
On 5/31/07, Klaus Espenlaub <[EMAIL PROTECTED]> wrote: > Rilawich Ango schrieb: > > Hi Michael, > > > > Thanks for your reply. I have tried your command but it still > > failed to connect from outside to guest OS (CentOS). In NAT mode, the > > IP of the guest OS is 10.0.2.15. After I issued 3 commands below in > > Host OS (windows 2000). > > VBoxManage setextradata "Linux Guest" > > "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP > > VBoxManage setextradata "Linux Guest" > > "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22 > > VBoxManage setextradata "Linux Guest" > > "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222 > > I support can ssh to the guest OS from outside thro' port 2222. > > However, I can't find any information about the port setting in > > netstat -an. Definitely, the ssh will fail from outside as the port > > 2222 isn't listening. I wonder if I have something wrong during the > > setting. Could you elaborate it more to make it works? > > Forwarding means that you need to connect to the host's normal IP, port > 2222. Hope you didn't try to connect to 10.0.2.15 (the guest NAT IP), > because that won't work. > > -- > Klaus Espenlaub InnoTek Systemberatung GmbH, http://www.innotek.de > > _______________________________________________ > vbox-users mailing list > [email protected] > http://vbox.innotek.de/mailman/listinfo/vbox-users > _______________________________________________ vbox-users mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-users
