修改vagrantfile,添加如下代码:
1 | config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "0.0.0.0", id: "ssh", auto_correct: true #ssh |
然后 vagrant reload
重启Vagrant即可。
修改vagrantfile,添加如下代码:
1 | config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "0.0.0.0", id: "ssh", auto_correct: true #ssh |
然后 vagrant reload
重启Vagrant即可。