Salut les gros barbus,
Je suis en train de décéder sur le problème suivant au boulot:
J’ai un laptop sous Windows 10 avec Bash on Windows dessus, j’y ai installé un serveur X11 (VcXsrv). Quand je lance un xclock depuis mon bash, ça répond bien. Ma config est la suivante:
Host *
XAuthLocation /usr/bin/xauth
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
Port 22
Protocol 2,1
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
# ProxyCommand ssh -q -W %h:%p gateway.example.com
# RekeyLimit 1G 1h
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
En local:
$ echo $DISPLAY
localhost:0.0
Donc jusque là tout va bien… Le problème est que je dois me connecter sur un AIX 7.2 et lancer un putain d’installateur graphique et là ça coince.
Depuis mon laptop:
ssh -XY _user_@_server_ip_
Première emmerde:
Warning: No xauth data; using fake authentication data for X11 forwarding.
La config SSH du serveur:
Host *
XAuthLocation /usr/bin/X11/xauth
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
Port 22
Protocol 2,1
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
# ProxyCommand ssh -q -W %h:%p gateway.example.com
# RekeyLimit 1G 1h
UseRoaming no
Quand je suis connecté sur le serveur en SSH donc, voici ce qui se passe:
$ which xauth
/usr/bin/X11/xauth
$ echo $DISPLAY
laptop_name:0.0
$ xclock
_X11TransSocketINETConnect() can't get address for laptop_name:6000: Hostname and service name not provided or found
Error: Can't open display: laptop_name:0.0
$ export DISPLAY=laptop_ip:0.0
$ xclock
Error: Can't open display: laptop_ip:0.0
J’ai donc l’impression que le protocole bloque car il ne trouve pas mon laptop, mais je pensais que tout l’intérêt du X11 forwarding est qu’il passe par le port du SSH et donc n’est pas bloqué au niveau réseau?! Quel est le fuck?
À l’aide les gens, please :’(:’(