GuoLi
7/17/2018 - 2:18 PM

Vagrant虚拟机访问主机端口

Vagrant虚拟机访问主机端口

$ vagrant ssh -- -R 1080:localhost:1080

This follows the ssh option syntax -R [bind_address:]port:host:hostport, where the first number is the port number to listen on inside the guest machine, and the last two are the service address as visible from the host machine