I run Vagrant on Windows and use PuTTY to connect to my VMs. This works fine, and I have saved a profile within PuTTY to connect to my VMs.
Sometimes, I run 3 or 4 Vagrant boxes and therefore I have to have multiple PuTTY profiles for the different ports that Vagrant forwards for SSH access. This requires me to remember the order in which I brought up my VMs.
Is it possible to configure Vagrant so that when I run vagrant ssh
, it launches PuTTY and automatically connects to the right VM for the path I'm in?
It seems that Vagrant will use the standard SSH client as long as its called ssh
. I'm wondering if the parameters that Vagrant uses are known, so I could create a batch file or something which will translate the parameters to something that is usable by PuTTY.
Best Answer
The following plugin should do the job:
https://github.com/nickryand/vagrant-multi-putty