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

tomhking picture tomhking  路  3Comments

RobertSwirsky picture RobertSwirsky  路  3Comments

hesco picture hesco  路  3Comments

gwagner picture gwagner  路  3Comments

bbaassssiiee picture bbaassssiiee  路  3Comments