{{tag>Brouillon X11 SSH Chroot}} = Notes X11 autorisations - xhost - Xauthority Voir : * xhost [[firefox_sudo|xhost firefox sudo]] Voir aussi : * [[X11|Notes X11]] Exemple : xhost local:web1 ou $ xhost + access control disabled, clients can connect from any host Voir xauth (en utilisant le compte approprié) xauth su - jean -c 'xauth list' Les infos lu provienne de ''~/.Xauthority'' si export XAUTHORITY=~/.Xauthority Permanent xhost rule ''/etc/profile.d/xhost.sh'' if [ "$DISPLAY" != "" ] then xhost +local:jean >/dev/null 2>&1 fi true chmod +x /etc/profile.d/xhost.sh == Pb === Pb serveur X11 avec ssh X11 forwarding request failed on channel 0 [[http://ask.xmodulo.com/fix-broken-x11-forwarding-ssh.html]] [[https://joshua.hoblitt.com/rtfm/2013/04/how_to_fix_x11_forwarding_request_failed_on_channel_0/]] J'ai eu le même problème lors d'un chroot d'un serveur SSH. Pas moyen de lancer une application graphique avec ''ssh -X'' ''/etc/ssh/sshd_config'' X11Forwarding yes X11UseLocalhost no J'avais déjà ''X11Forwarding yes'' dans mon fichier. Puis /etc/init.d/ssh restart Vérifier également que vous avez le paquet ''xauth'' d'installé sur la machine que vous vous connectez Autres $ ssh -X -Y remote-server $ application-binary To skip the intermediate terminal session, use the following command ssh user@server -X -Y -C binary_application === Pb Plus de lancement graphique possible sous un autre compte utilisateur Plus de lancement graphique possible après ''su'' ou ''sudo'' après ''ssh -X serveur'' Puis ''xterm'' X11 connection rejected because of wrong authentication. Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm: Xt error: Can't open display: %s Il faut copier le fichier **.Xauthority** présent dans le "home" de l'utilisateur. Voir variable XAUTHORITY qui vaut par défaut $HOME/.Xauthority Par exemple : ssh -X plop@serveur su - cp /home/plop/.Xauthority ~ # export XAUTHORITY=/home/plop/.Xauthority xterm