VirtualBox-4.1.10 doesn't forward ports into the guests

Yuri yuri at rawbw.com
Mon Apr 2 19:01:00 UTC 2012


I use these commands:
VBoxManage setextradata MyGuest 
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata MyGuest 
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata MyGuest 
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222

They worked the first time. Then I deleted that guest, created a new one 
with he same name. Now they don't work on this guest:
$ ssh -p 2222 127.0.0.1
ssh: connect to host 127.0.0.1 port 2222: Connection refused

Even though:
$ VBoxManage getextradata MyGuest enumerate
Key: GUI/LastCloseAction, Value: shutdown
Key: GUI/LastGuestSizeHint, Value: 720,400
Key: GUI/LastNormalWindowPosition, Value: 573,23,720,443
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: TCP

Yuri


More information about the freebsd-emulation mailing list