Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1484 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  [Résolu]Problème de connexion X11

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Résolu]Problème de connexion X11

n°1315809
Le_Tolier
Hello IT ?
Posté le 10-07-2012 à 10:47:58  profilanswer
 

o/
 
J'ai un petit souci, je souhaiterais lancer des applications X11 depuis une connexion SSH sur une machine en RHEL 5.5.
Rien de plus simple me direz vous, avec le ssh et le X11 forwarding ... sauf que j'ai l'erreur suivante :  
 

[toto@cr1-supbdd ~]$ xclock
Xlib: connection to "localhost:11.0" refused by server
Xlib: PuTTY X11 proxy: wrong authorisation protocol attempted
Error: Can't open display: localhost:11.0


 
Alors depuis une autre machine ça fonctionne. J'ai bien vérifier que le X11 forwarding est à yes dans le fichier sshd_config et dans la configuration de mon putty. Le démon Xorg est bien lancé et le graphique fonctionne quand je me connecte à la console locale.
 
J'ai remarqué qu'en faite le fichier .Xauthority n'est pas créé quand je me connecte je pense que le problème vient de là mais je ne sais pas comment faire pour corriger ce problème.
 
 :jap:


Message édité par Le_Tolier le 10-07-2012 à 12:33:40

---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
mood
Publicité
Posté le 10-07-2012 à 10:47:58  profilanswer
 

n°1315811
e_esprit
Posté le 10-07-2012 à 11:15:59  profilanswer
 

Il faut installer le paquet qui contient la commande xauth.


---------------
Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres.
n°1315813
Le_Tolier
Hello IT ?
Posté le 10-07-2012 à 11:24:48  profilanswer
 


La commande est installé :  
 

e_esprit a écrit :

Il faut installer le paquet qui contient la commande xauth.


 
 


[toto@cr1-supbdd ~]$ ls -ltra
total 10
drwxr-xr-x 13 root   root  1024 jui  9 12:17 ..
drwx------  2 toto seres 1024 jui  9 12:18 .ssh
-rw-r--r--  1 toto seres  183 jui  9 14:46 .bash_profile
-rw-r--r--  1 toto seres  131 jui  9 14:47 .bashrc
-rw-------  1 toto seres 1612 jui  9 15:07 .viminfo
-rw-------  1 toto seres 1710 jui 10 10:25 .bash_history
drwx------  3 toto seres 1024 jui 10 10:35 .
[toto@cr1-supbdd ~]$ which xauth
/usr/bin/xauth
[toto@cr1-supbdd ~]$ xauth list
xauth:  creating new authority file /home/toto/.Xauthority
[toto@cr1-supbdd ~]$ ls -ltra
total 10
drwxr-xr-x 13 root   root  1024 jui  9 12:17 ..
drwx------  2 toto seres 1024 jui  9 12:18 .ssh
-rw-r--r--  1 toto seres  183 jui  9 14:46 .bash_profile
-rw-r--r--  1 toto seres  131 jui  9 14:47 .bashrc
-rw-------  1 toto seres 1612 jui  9 15:07 .viminfo
-rw-------  1 toto seres 1710 jui 10 10:25 .bash_history
drwx------  3 toto seres 1024 jui 10 11:23 .
[toto@cr1-supbdd ~]$ xclock
Xlib: connection to "localhost:12.0" refused by server
Xlib: PuTTY X11 proxy: wrong authorisation protocol attempted
Error: Can't open display: localhost:12.0


 
C'est bizarre ... :o


---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
n°1315815
e_esprit
Posté le 10-07-2012 à 11:45:23  profilanswer
 

Il te dit qu'il créé le fichier .Xauthority, mais quand tu fais le ls il y est pas ? :heink:

Message cité 1 fois
Message édité par e_esprit le 10-07-2012 à 11:45:31

---------------
Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres.
n°1315817
Le_Tolier
Hello IT ?
Posté le 10-07-2012 à 11:46:19  profilanswer
 

e_esprit a écrit :

Il te dit qu'il créé le fichier .Xauthority, mais quand tu fais le ls il y est pas ? :heink:


 
voilà :-) tu as cerné mon problème c'est bien pour ca que je deviens fou depuis hier ....  
 
J'ajouterai que je lance la commande xauth j'ai des fichiers temporaire de créé mais une fois la commande terminée plus aucun fichier ayant un rapport avec xauth ..
 
Pour info  
 

[toto@cr1-supbdd ~]$ rpm -qa |grep -i x11
xorg-x11-font-utils-7.1-2
xorg-x11-server-utils-7.1-4.fc6
xorg-x11-fonts-base-7.1-2.1.el5
xorg-x11-drv-void-1.1.0-3.1
xorg-x11-drv-mouse-1.1.1-1.1
xorg-x11-server-Xorg-1.1.1-48.76.el5
xorg-x11-xinit-1.0.2-15.el5
libX11-1.0.3-11.el5
xorg-x11-xkb-utils-1.0.2-2.1
xorg-x11-utils-7.1-2.fc6
xorg-x11-drv-evdev-1.0.0.5-5.el5
xorg-x11-server-Xnest-1.1.1-48.76.el5
xorg-x11-fonts-ISO8859-1-75dpi-7.1-2.1.el5
xorg-x11-drv-vesa-1.3.0-8.2.el5
xorg-x11-xauth-1.0.1-2.1
xorg-x11-apps-7.1-4.0.1.el5
dbus-x11-1.1.2-14.el5
xorg-x11-filesystem-7.1-2.fc6
libX11-1.0.3-11.el5
xorg-x11-xfs-1.0.2-4
xorg-x11-fonts-Type1-7.1-2.1.el5
xorg-x11-drv-keyboard-1.1.0-3


Message édité par Le_Tolier le 10-07-2012 à 11:49:22

---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
n°1315819
e_esprit
Posté le 10-07-2012 à 11:50:08  profilanswer
 

Et si tu lances juste "xauth" (pas de list) ?
/home/toto c'est bien ton homedir ? (nan parce que sur un malentendu, vu que xauth utilise une variable d'environnement, on ne sait jamais :D)


---------------
Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres.
n°1315820
e_esprit
Posté le 10-07-2012 à 11:51:57  profilanswer
 

http://www.kgarner.com/blog/archiv [...] n-the-ass/

Citation :

One other thing we learned in this is that xauth is dumb dumb stupid. xauth won’t create a .Xauthority file if there is nothing to put into it, such as when you call “xauth list” when a file doesn’t exist. However, if you do an “xauth list” and you don’t have a .Xauthority file, xauth spits out a diagnostic message saying its creating it. In reality, it doesn’t really create the file. Bad coding on someone’s part. This wasted us time, as we though it was xauth that was broken, not Dave’s ssh environment. One could argue that xauth IS broken by demonstrating this behavior, but that’s a different rant.


 
 :D


---------------
Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres.
n°1315826
Le_Tolier
Hello IT ?
Posté le 10-07-2012 à 12:05:14  profilanswer
 

e_esprit a écrit :

Et si tu lances juste "xauth" (pas de list) ?
/home/toto c'est bien ton homedir ? (nan parce que sur un malentendu, vu que xauth utilise une variable d'environnement, on ne sait jamais :D)


 
ouais le /home/toto est bien mon home ;-)  
Je regarde le lien que tu as fourni. Ce qui me gene le plus et que je ne comprend pas c'est pourquoi le  .Xauthority ne se créer pas lors de la connexion du ssh ....


---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
n°1315829
Le_Tolier
Hello IT ?
Posté le 10-07-2012 à 12:33:26  profilanswer
 

e_esprit a écrit :

http://www.kgarner.com/blog/archiv [...] n-the-ass/

Citation :

One other thing we learned in this is that xauth is dumb dumb stupid. xauth won’t create a .Xauthority file if there is nothing to put into it, such as when you call “xauth list” when a file doesn’t exist. However, if you do an “xauth list” and you don’t have a .Xauthority file, xauth spits out a diagnostic message saying its creating it. In reality, it doesn’t really create the file. Bad coding on someone’s part. This wasted us time, as we though it was xauth that was broken, not Dave’s ssh environment. One could argue that xauth IS broken by demonstrating this behavior, but that’s a different rant.


 
 :D


 
Merci !  
 
Ptin de /etc/ssh/sshrc .... tout ca pour un motd a la con ....  
Le temps que j'ai passé pour ce problème ... tu as fait quel recherche pour tomber la dessus ?


---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
n°1315837
e_esprit
Posté le 10-07-2012 à 13:38:10  profilanswer
 

Citation :

RHEL xauth won't create .Xauthority


 :D

Message cité 1 fois
Message édité par e_esprit le 10-07-2012 à 13:38:23

---------------
Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres.
mood
Publicité
Posté le 10-07-2012 à 13:38:10  profilanswer
 

n°1315840
Le_Tolier
Hello IT ?
Posté le 10-07-2012 à 13:55:13  profilanswer
 

e_esprit a écrit :

Citation :

RHEL xauth won't create .Xauthority


 :D


 
ok !


---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  [Résolu]Problème de connexion X11

 

Sujets relatifs
Install d'un new serveur, problème d'import bdd [Résolu]Probleme de suppression de lien symbolique
probleme d'installation debian sur RAID LSIProblème Samba Debian 5
Probleme libxml2 sur CentOS 6.2DD 2To illisible après installation ubuntu
[Résolus]Problème d'installation de Gmeshprobleme de partition
probleme enregitrement acid pro 4.0 et carte son fast track 
Plus de sujets relatifs à : [Résolu]Problème de connexion X11


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR