Vagrant: Extend "vagrant ssh" to allow X, agent forwarding

Created on 9 Jul 2011  ·  3Comments  ·  Source: hashicorp/vagrant

Often times I'd like to be able to SSH to my Vagrant box and forward X to it, without manually typing the 'ssh' command. (Having agent forwarding might be handy as well, if I want to SSH from my vagrant box to the outside world.)

If I run "vagrant ssh -X -A", it would be good if -X and -A were propagated to the underlying SSH client.

Most helpful comment

I just looked up in the documentation and I think it's changed to

 config.ssh.forward_x11 = true

All 3 comments

Pontillo,

This feature already exists. You just have to enable it in your Vagrantfile and it will take effect for vagrant ssh:

config.forward_x11 = true

Cheers

Thanks, sorry for posting without looking at the code. I was just looking at ssh.rb and found that.

I still would like the command-line parameter, but this will do just fine. ;-)

I just looked up in the documentation and I think it's changed to

 config.ssh.forward_x11 = true
Was this page helpful?
0 / 5 - 0 ratings

Related issues

RobertSwirsky picture RobertSwirsky  ·  3Comments

tomhking picture tomhking  ·  3Comments

jazzfog picture jazzfog  ·  3Comments

rhencke picture rhencke  ·  3Comments

DreadPirateShawn picture DreadPirateShawn  ·  3Comments