I have installed CentOS 5.5 on my Vbox which I'm running on w7.
Everything is okey, except the fact that I can't connect to CentOS from outside.Even from my host OS.
I did a search and I found out that I need to type some commands in order to portforward in virtual box.I did this.
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage setextradata nightshadow "VBoxInte
rnal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.
C:\Program Files\Oracle\VirtualBox>VBoxManage setextradata nightshadow "VBoxInte
rnal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.
C:\Program Files\Oracle\VirtualBox>VBoxManage setextradata nightshadow "VBoxInte
rnal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.
When I type VBoxManage getextradata nightshadow enumerate I got this
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage getextradata nightshadow enumerate
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.
Key: GUI/Fullscreen, Value: on
Key: GUI/LastCloseAction, Value: powerOff
Key: GUI/LastGuestSizeHint, Value: 1680,1050
Key: GUI/LastWindowPostion, Value: 0,0,0,0,max
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort, Value: 22
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort, Value: 2222
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol, Value: TCPWhen I try to connect to my Guest OS, I just get Connection refused message.
What is the problem ?