Vagrant Tipps & Tricks


ssh port forward to public ip

Can't connect to linux box - ssh login to local loopback 127.0.0.1 is not working.

Add to Vagrantfile the following

v.ssh_info_public = true


ssh port change

DOC: Vagrant Forwarded Port and do not forget id:"ssh" and clean nat.conf -

Add to Vagrantfile the following

centos.vm.network :forwarded_port, guest: 22, host: 2225, id: "ssh"


Authors:
  • Jochen Schnuerle