Puedo conectarme a máquinas en mi LAN local usando ssh -Xo ssh -Yy el reenvío X funciona. Sin embargo, al intentar conectarme a máquinas fuera de mi LAN, el reenvío X falla.
He reducido el problema a estas líneas en mi ~/.ssh/configarchivo:
## Enable auto completion even when needing a password
## as long as one connnection to the server has been established.
Host *
ControlPath ~/.ssh/master-%r@%h:%p
ControlMaster auto
Este es el resultado de ssh -vYcuando mi ~/.ssh/configarchivo contienesololas líneas de arriba:
$ ssh -vYp 1234 [email protected]
OpenSSH_6.2p2 Debian-6, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /home/terdon/.ssh/config
debug1: /home/terdon/.ssh/config line 3: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 14
Last login: Tue Oct 15 20:12:24 2013 from foo.bar.net
terdon@server $ echo $DISPLAY
terdon@server $
Tenga en cuenta que no hay ninguna línea sobre cómo solicitar el reenvío X11, compárelo con el resultado a continuación, aparentemente estas opciones anulan el indicador -Yo -X. Si el ~/.ssh/configarchivo está vacío, el resultado del comando anterior incluye (no muestro todo porque es muy largo y creo que es irrelevante, avíseme si es necesario):
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Y el reenvío X es exitoso:
terdon@server $ echo $DISPLAY
localhost:11.0
Lo intenté
Host *
ControlPath ~/.ssh/master-%r@%h:%p
ControlMaster auto
X11Forwarding yes
y
X11Forwarding yes
Host *
ControlPath ~/.ssh/master-%r@%h:%p
ControlMaster auto
Pero ambos me dan este error:
Bad configuration option: X11Forwarding
Información del sistema:
$ lsb_release -icd
Distributor ID: LinuxMint
Description: LMDE Cinnamon Edition
Codename: debian
$ uname -a
Linux oregano 3.10-2-amd64 #1 SMP Debian 3.10.5-1 (2013-08-07) x86_64 GNU/Linux
$ ssh -V
OpenSSH_6.2p2 Debian-6, OpenSSL 1.0.1e 11 Feb 2013
¿Cómo puedo permitir el reenvío de X y conservar las opciones de configuración que tengo?


