Windows 7上的VirtualBox端口转发无法正常工作
我试图通过端口转发从我的Windows 7主机ssh到我的VirtualBox,但VirtualBox不会打开端口进行监听.我可以通过打开VirtualBox GUI并通过该终端导航来连接它,但我无法通过主机上的标准ssh客户端进行连接.我希望能够在我的主机上的2222端口ssh到客户端.
这是我的设置:
Host: Window 7 SP1
Guest: Ubunto Ubuntu 12.04
VirutalBox: 4.3.26
Host Processor: Intel Core i7 920
Run Code Online (Sandbox Code Playgroud)
客户机被配置为NAT,并且127.0.0.1对于主机端口2222 启用端口转发到客户端口22.
ifconfig来宾的输出:
eth0 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask: 255.255.255.0
Run Code Online (Sandbox Code Playgroud)
ps -ef | grep sshd来宾的输出:
root 625 1 0 12:27 ? 00:00:00 /usr/sbin/sshd -D
Run Code Online (Sandbox Code Playgroud)
netstat -ant | grep 22来宾的输出:
tcp 0 0 0.0.0.0:22 0.0.0.0:*
tcp6 0 0 :::22 :::*
Run Code Online (Sandbox Code Playgroud)
但在主持人,netstat -ant | grep 2222没有显示任何东西.
在VBox.log中我有这个:
00:00:03.413790 NAT: set redirect TCP host 127.0.0.1:2222 …Run Code Online (Sandbox Code Playgroud)