SSH in to multiple Vagrant VM’s in Windows using PuPHPet and Port Forwarding
Update March 10th, 2014: After spending an extra five minutes this
morning trying to ssh in with my the virtual machine IP, instead of using my
local IP with the forwarded port, I was able to get it work. I don’t know why
this hasn’t worked for me in the past unless I’ve just been typing the wrong
IP or something. In retrospect, assuming the VM IP was 192.168.56.101, I may
have just inadvertently been using 192.168.1.101. So, from now on, I’ll be
using the VM IP for ssh but I won’t go as far as to say that it’s wrong to use
your local IP and forwarded ports. If you want to ssh in to multiple vagrant
boxes on the same IP, local or otherwise, port forwarding makes that possible
and PuPHPet makes it really easy to set up.
4 minutes to read