X11 forwarding request failed on channel 0 [Réglé]

xuo Membre non connecté
-
- Voir le profil du membre xuo
- Inscrit le : 23/10/2011
- Groupes :
Depuis ce matin, je récupère le warning suivant lorsque je me connecte à mon serveur en ssh :
X11 forwarding request failed on channel 0
Je ne pense pas avoir modifié quoi que ce soit depuis 100 ans (je sais que l'interface chaise-clavier n'est pas très fiable mais quand même ...), à part peut-être lors d'une mise à jour récente (je ne sais pas s'il y en a eu).
J'ai ajouté les X11Forwarding dans tous les fichiers de config de ssh car ils étaient commentés.
Sur le client :
# grep -ri x11
sshd_config:X11Forwarding yes
sshd_config:#X11DisplayOffset 10
sshd_config:#X11UseLocalhost yes
sshd_config:# X11Forwarding no
ssh_config.d/50-mageia.conf: ForwardX11 yes
ssh_config.d/50-mageia.conf:# If this option is set to yes then remote X11 clients will have full access
ssh_config.d/50-mageia.conf:# to the original X11 display. As virtually no X11 client supports the untrusted
ssh_config.d/50-mageia.conf: ForwardX11Trusted yes
ssh_config:ForwardX11 yes
# grep -r AddressFamily
sshd_config:AddressFamily any
ssh_config:AddressFamily any
Caché :
# ssh -v serveur
OpenSSH_8.4p1, OpenSSL 1.1.1j 16 Feb 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-mageia.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: configuration requests final Match pass
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-mageia.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to serveur [192.168.0.14] port 22.
debug1: Connection established.
debug1: identity file /home/xuo/.ssh/id_rsa type 0
debug1: identity file /home/xuo/.ssh/id_rsa-cert type -1
debug1: identity file /home/xuo/.ssh/id_dsa type -1
debug1: identity file /home/xuo/.ssh/id_dsa-cert type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/xuo/.ssh/id_ed25519 type -1
debug1: identity file /home/xuo/.ssh/id_ed25519-cert type -1
debug1: identity file /home/xuo/.ssh/id_ed25519_sk type -1
debug1: identity file /home/xuo/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/xuo/.ssh/id_xmss type -1
debug1: identity file /home/xuo/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0
debug1: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000
debug1: Authenticating to serveur:22 as 'xuo'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:vEAfgbt4fkW9EgvjC9ojm0aUOrp5GFbyWE5iN4Uwy/E
debug1: Host 'serveur' is known and matches the RSA host key.
debug1: Found key in /home/xuo/.ssh/known_hosts:16
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/xuo/.ssh/id_rsa RSA SHA256:ujE7vN84cJ+8q9phOwADqCkGdSe8vVRn+kJQZ9NpoB0
debug1: Will attempt key: /home/xuo/.ssh/id_dsa
debug1: Will attempt key: /home/xuo/.ssh/id_ecdsa
debug1: Will attempt key: /home/xuo/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/xuo/.ssh/id_ed25519
debug1: Will attempt key: /home/xuo/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/xuo/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/xuo/.ssh/id_rsa RSA SHA256:ujE7vN84cJ+8q9phOwADqCkGdSe8vVRn+kJQZ9NpoB0
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/xuo/.ssh/id_dsa
debug1: Trying private key: /home/xuo/.ssh/id_ecdsa
debug1: Trying private key: /home/xuo/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/xuo/.ssh/id_ed25519
debug1: Trying private key: /home/xuo/.ssh/id_ed25519_sk
debug1: Trying private key: /home/xuo/.ssh/id_xmss
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to serveur ([192.168.0.14]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = fr_FR.UTF-8
debug1: Sending env LANGUAGE = fr_FR.UTF-8:fr
debug1: Sending env XMODIFIERS = @im=none
X11 forwarding request failed on channel 0
Last login: Sat Mar 20 18:37:29 2021 from 192.168.0.11
OpenSSH_8.4p1, OpenSSL 1.1.1j 16 Feb 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-mageia.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: configuration requests final Match pass
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-mageia.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to serveur [192.168.0.14] port 22.
debug1: Connection established.
debug1: identity file /home/xuo/.ssh/id_rsa type 0
debug1: identity file /home/xuo/.ssh/id_rsa-cert type -1
debug1: identity file /home/xuo/.ssh/id_dsa type -1
debug1: identity file /home/xuo/.ssh/id_dsa-cert type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/xuo/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/xuo/.ssh/id_ed25519 type -1
debug1: identity file /home/xuo/.ssh/id_ed25519-cert type -1
debug1: identity file /home/xuo/.ssh/id_ed25519_sk type -1
debug1: identity file /home/xuo/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/xuo/.ssh/id_xmss type -1
debug1: identity file /home/xuo/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0
debug1: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000
debug1: Authenticating to serveur:22 as 'xuo'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:vEAfgbt4fkW9EgvjC9ojm0aUOrp5GFbyWE5iN4Uwy/E
debug1: Host 'serveur' is known and matches the RSA host key.
debug1: Found key in /home/xuo/.ssh/known_hosts:16
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/xuo/.ssh/id_rsa RSA SHA256:ujE7vN84cJ+8q9phOwADqCkGdSe8vVRn+kJQZ9NpoB0
debug1: Will attempt key: /home/xuo/.ssh/id_dsa
debug1: Will attempt key: /home/xuo/.ssh/id_ecdsa
debug1: Will attempt key: /home/xuo/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/xuo/.ssh/id_ed25519
debug1: Will attempt key: /home/xuo/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/xuo/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/xuo/.ssh/id_rsa RSA SHA256:ujE7vN84cJ+8q9phOwADqCkGdSe8vVRn+kJQZ9NpoB0
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/xuo/.ssh/id_dsa
debug1: Trying private key: /home/xuo/.ssh/id_ecdsa
debug1: Trying private key: /home/xuo/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/xuo/.ssh/id_ed25519
debug1: Trying private key: /home/xuo/.ssh/id_ed25519_sk
debug1: Trying private key: /home/xuo/.ssh/id_xmss
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to serveur ([192.168.0.14]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = fr_FR.UTF-8
debug1: Sending env LANGUAGE = fr_FR.UTF-8:fr
debug1: Sending env XMODIFIERS = @im=none
X11 forwarding request failed on channel 0
Last login: Sat Mar 20 18:37:29 2021 from 192.168.0.11
Depuis le serveur vers le client, je n'ai pas de problème.
Quelqu'un a-t-il une idée ?
Merci.
Xuo.
Édité par xuo Le 20/03/2021 à 19h00

xuo Membre non connecté
-
- Voir le profil du membre xuo
- Inscrit le : 23/10/2011
- Groupes :
J'ai réussi à le faire marcher en ajoutant sur le fichier /etc/ssh/sshd_config du serveur :
#X11UseLocalhost yes => X11UseLocalhost no
Aucune idée de ce à quoi ça peut bien servir mais ça semble indispensable. C'est probablement lié à une nouvelle version des fichiers de config de ssh par Mageia.
Quelqu'un peut confirmer ?
Merci.
Xuo.
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie