Archive for 2009.12
ssh连接virtualbox中虚拟主机
virtualbox中虚拟主机默认安装完成后联网模式默认为NAT,宿主机及外部网络不能直接访问客户机,因此需要为客户机建立端口映射。 建立端口映射的命令格式为: VBoxManage setextradata 虚拟主机名称 “VBoxInternal/Devices/pcnet/0/LUN#0/Config/服务名称/Protocol” TCP VBoxManage setextradata 虚拟主机名称 “VBoxInternal/Devices/pcnet/0/LUN#0/Config/服务名称/HostPort” 映射后的端口 //这个端口可以自由设定 VBoxManage setextradata 虚拟主机名称 “VBoxInternal/Devices/pcnet/0/LUN#0/Conf...12