virtualbox端口映射

首先,virtualbox安装了ssh-server,默认端口是22

关掉虚拟机

在Windows里进到如下目录,执行命令:

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvm "ubuntu 10" --natpf1 "guestssh,tcp,,2222,,22"

就可以用ssh-client访问了。注意ip:port=127.0.0.1:2222

 

If you have any questions or ideas ,please feel free to contact me : )

thx.^^


QQ: 1623213673


你可能感兴趣的:(oracle,虚拟机,windows,tcp,qq,ubuntu)