what are you missing with vagrant ssh-config ?

On Sat, May 10, 2014 at 8:28 AM, Ben Hines <bhi...@gmail.com> wrote:

> I often find myself firing up virtualbox and looking at the networking tab
> under port forwarding on my vagrant boxes to see this information.
>
> I think vagrant will also tell you the manual connection information
> (including port) if the 'vagrant ssh' command fails. A way for vagrant to
> print out that manual ssh information on demand would be useful. "vagrant
> ssh -info'?
>
> -Ben
>
>
> On Friday, May 9, 2014 10:43:48 AM UTC-7, Diego Zamboni wrote:
>>
>> Thanks, "vagrant port" would be nice.
>>
>> I found this plugin, but doesn't seem to work (at least in 1.5.x or
>> 1.6.1): https://github.com/jordansissel/vagrant-port
>>
>> --Diego
>>
>>
>> On Friday, May 9, 2014 12:34:27 PM UTC-5, Mitchell Hashimoto wrote:
>>>
>>> Diego,
>>>
>>> There isn't, and won't be from within the Vagrantfile for the
>>> forseeable time. But we are considering adding a `vagrant port`
>>> command that will tell you where things were forwarded to.
>>>
>>> Best,
>>> Mitchell
>>>
>>> On Fri, May 9, 2014 at 10:32 AM, Diego Zamboni <di...@zzamboni.org>
>>> wrote:
>>> > Hi,
>>> >
>>> > I'm using a Vagrant setup that brings up a web application, and I have
>>> > something like this:
>>> >
>>> >       config.vm.network :forwarded_port, guest: 80, host: 9080,
>>> > auto_correct: true
>>> >
>>> > When I bring up two instances of this at the same time, the first one
>>> > correctly redirects port 9080, and the second one automatically
>>> corrects the
>>> > port, displaying something like this in Vagrant's output:
>>> >
>>> > ==> hub: Fixed port collision for 80 => 9080. Now on port 2201.
>>> >
>>> > Is there a way to fetch this value from within the Vagrantfile, so
>>> that the
>>> > port to use can be displayed in a post_up_message?
>>> >
>>> > Bonus question: is there a way to find out, once the VM is up and I
>>> don't
>>> > have the output of "vagrant up", what ports are redirected and where?
>>> >
>>> > Thanks,
>>> > --Diego
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "Vagrant" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> > email to vagrant-up+...@googlegroups.com.
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to