Skip to main content
The 2024 Developer Survey results are live! See the results
15 events
when toggle format what by license comment
Sep 21, 2020 at 0:23 comment added Andrew Koster vagrant ssh works fine as far as I can tell, what is this
Aug 4, 2017 at 11:49 comment added henrebotha The one-liner was just what I needed. I am making a tmuxinator setup script that needs to log in to the same vagrant box on multiple panes, but vagrant ssh has a global lock - one process at a time only. ssh itself has no such lock, so using your one-liner let me bypass that limitation.
Dec 16, 2016 at 17:26 history edited Paul Chernoch CC BY-SA 3.0
Account for multiple hosts, blank lines in ssh-config
Dec 16, 2016 at 16:56 comment added Paul Chernoch If your Vagrantfile defines multiple vagrant guest containers as mine does, this will not work. You need to change the code to select which host you intend to connect to.
Nov 17, 2016 at 15:00 history edited Stefano Palazzo CC BY-SA 3.0
added 33 characters in body
Nov 20, 2015 at 17:49 comment added kgadek I had to skip first line, ie. the Host entry. The modified command is: ssh $(vagrant ssh-config | awk 'NR>1 {print " -o "$1"="$2}') localhost
Oct 23, 2015 at 17:53 comment added Stefano Palazzo Vagrant chooses an unused one with the auto_correct: true setting. Here's more info on how to change it manually
Oct 23, 2015 at 17:45 comment added nroose So, what is making that port a way to get in to the machine? Where is the configuration of what port it is?
Aug 30, 2015 at 17:37 history edited Kevin Burke CC BY-SA 3.0
added 2 characters in body
Dec 15, 2014 at 12:54 comment added Yser You could set the port on your own. Thus the script will be executable from any directory.
Sep 4, 2014 at 2:39 comment added sjy This answer doesn't let you ssh to your Vagrant from outside the Vagrantfile directory ("using the regular ssh command"), which is how I interpreted the question.
Aug 11, 2014 at 2:11 vote accept Kevin Burke
Sep 24, 2013 at 14:50 history edited Stefano Palazzo CC BY-SA 3.0
added 88 characters in body
Sep 4, 2013 at 12:00 history edited Stefano Palazzo CC BY-SA 3.0
added 1 characters in body
Oct 17, 2012 at 16:04 history answered Stefano Palazzo CC BY-SA 3.0