I'm using Ubuntu16 inside a Docker image on top of CentOS6 in order to be able to run certain desktop apps that doesn't run on top of CentOS6.
As an example, to run the Dartium browser, I do:
ssh -X -p 32768 [email protected] dartium
To run a special version of firefox, I do:
ssh -X -p 32768 [email protected] firefox-mod
etc, etc, etc - for each app I want to run on Ubuntu that doesn't work on CentOS6, I simply run it via ssh -X
One of the applications requires access to a git repo. I've setup all the SSH keys that rerequired to make it work and this is as far as I get:
$ git fetch origin
/etc/ssh/ssh_config: line 55: Bad configuration option: x11forwarding
/etc/ssh/ssh_config: terminating, 1 bad configuration options
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
The git remote is setup to run via SSH, when it runs, it obviously includes the x11forwarding parameter which is required for ssh -X
to work. Removing x11forwarding
config makes it work again, but then X11 Forwarding stops working.
ssh -T git@gitlab._____.____ -p 22
/etc/ssh/ssh_config: line 55: Bad configuration option: x11forwarding
/etc/ssh/ssh_config: terminating, 1 bad configuration options
Is there a way to turn off the x11forwarding
only for the git
command?