sur le serveur,
/etc/sshd_config
j'ai bien mis
X11Forwarding yes
sur le client,
j'ai pas touché à /etc/ssh_config ,
mais je me connecte avec ssh -X <ip>
pourtant,
quand je me connecte avec ssh, ca m'indique :
/usr/X11R6/bin/xauth: (stdin):1: bad display name "unix:10.0" in
"remove" command
/usr/X11R6/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add"
command
quand je lance le programme x11, ca m'indique :
X11 connection rejected because of wrong authentication.
The application 'testgtk' lost its connection to the display
localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.
qu'est ce que j'ai oublié ?
--
Informations sur Nicolas Sarkozy :
http://www.betapolitique.fr/spip.php?article0602
http://www.betapolitique.fr/spip.php?article0601
http://www.betapolitique.fr/spip.php?article0414
http://www.betapolitique.fr/spip.php?article0606
http://tDeContes.hd.free.fr/divers/Ruptures.pdf
si dans ~/.tcshrc je remplace setenv DISPLAY :0.0 par setenv DISPLAY localhost:0.0 (c'est bien equivalent ?)
pareil :
thomas% echo $DISPLAY localhost:0.0 thomas% ssh -X Last login: Tue Jun 5 15:53:09 2007 from 192.168.1.202 Welcome to Darwin! /usr/X11R6/bin/xauth: creating new authority file /Users/thomas/.Xauthority /usr/X11R6/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" command /usr/X11R6/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" command [:~] thomas% cd /Users/thomas/Documents/temporaire/ [:~/Documents/temporaire] thomas% cd GtkAda/testgtk/ [:temporaire/GtkAda/testgtk] thomas% ./testgtkconnect localhost port 6000: Connection refused
The application 'testgtk' lost its connection to the display localhost:10.0; most likely the X server was shut down or you killed/destroyed the application. [:temporaire/GtkAda/testgtk] thomas%
c'est donc pas là qu'on choisit le "unix" ... j'ai bien pensé à ouvrir une nouvelle fenetre de terminal
ps: pour la clarté des choses, tu devrais essayer d'avoir un PS1 différent selon les hosts.
ok j'en laisse un peu plus
-- Informations sur Nicolas Sarkozy : http://www.betapolitique.fr/spip.php?article0602 http://www.betapolitique.fr/spip.php?article0601 http://www.betapolitique.fr/spip.php?article0414 http://www.betapolitique.fr/spip.php?article0606 http://tDeContes.hd.free.fr/divers/Ruptures.pdf
In article (Dans l'article) <293gj4-ih3.ln1@prout.stex>,
Thierry Boudet <tth@prout.stex> wrote (écrivait) :
On 2007-06-05, Thomas <fantome.forums.tDeContes@free.fr.invalid> wrote:
si dans ~/.tcshrc je remplace
setenv DISPLAY :0.0
par
setenv DISPLAY localhost:0.0
(c'est bien equivalent ?)
pareil :
thomas% echo $DISPLAY
localhost:0.0
thomas% ssh -X thomas@192.168.1.4
Last login: Tue Jun 5 15:53:09 2007 from 192.168.1.202
Welcome to Darwin!
/usr/X11R6/bin/xauth: creating new authority file
/Users/thomas/.Xauthority
/usr/X11R6/bin/xauth: (stdin):1: bad display name "unix:10.0" in
"remove" command
/usr/X11R6/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add"
command
[:~] thomas% cd /Users/thomas/Documents/temporaire/
[:~/Documents/temporaire] thomas% cd GtkAda/testgtk/
[:temporaire/GtkAda/testgtk] thomas% ./testgtkconnect localhost port
6000: Connection refused
The application 'testgtk' lost its connection to the display
localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.
[:temporaire/GtkAda/testgtk] thomas%
c'est donc pas là qu'on choisit le "unix" ...
j'ai bien pensé à ouvrir une nouvelle fenetre de terminal
ps: pour la clarté des choses, tu devrais essayer d'avoir un
PS1 différent selon les hosts.
ok
j'en laisse un peu plus
--
Informations sur Nicolas Sarkozy :
http://www.betapolitique.fr/spip.php?article0602
http://www.betapolitique.fr/spip.php?article0601
http://www.betapolitique.fr/spip.php?article0414
http://www.betapolitique.fr/spip.php?article0606
http://tDeContes.hd.free.fr/divers/Ruptures.pdf
si dans ~/.tcshrc je remplace setenv DISPLAY :0.0 par setenv DISPLAY localhost:0.0 (c'est bien equivalent ?)
pareil :
thomas% echo $DISPLAY localhost:0.0 thomas% ssh -X Last login: Tue Jun 5 15:53:09 2007 from 192.168.1.202 Welcome to Darwin! /usr/X11R6/bin/xauth: creating new authority file /Users/thomas/.Xauthority /usr/X11R6/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" command /usr/X11R6/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" command [:~] thomas% cd /Users/thomas/Documents/temporaire/ [:~/Documents/temporaire] thomas% cd GtkAda/testgtk/ [:temporaire/GtkAda/testgtk] thomas% ./testgtkconnect localhost port 6000: Connection refused
The application 'testgtk' lost its connection to the display localhost:10.0; most likely the X server was shut down or you killed/destroyed the application. [:temporaire/GtkAda/testgtk] thomas%
c'est donc pas là qu'on choisit le "unix" ... j'ai bien pensé à ouvrir une nouvelle fenetre de terminal
ps: pour la clarté des choses, tu devrais essayer d'avoir un PS1 différent selon les hosts.
ok j'en laisse un peu plus
-- Informations sur Nicolas Sarkozy : http://www.betapolitique.fr/spip.php?article0602 http://www.betapolitique.fr/spip.php?article0601 http://www.betapolitique.fr/spip.php?article0414 http://www.betapolitique.fr/spip.php?article0606 http://tDeContes.hd.free.fr/divers/Ruptures.pdf
-- { SIGWHAT?!!, "BACKSIGNAL" }, /* the processus signal the kill program it disagree with the previous signal given. See anarchy(3) */ --{ f.m.b.l revisite la command kill }--
On 2007-06-05, Thierry Boudet <tth@prout.stex> wrote:
On 2007-06-05, Thomas <fantome.forums.tDeContes@free.fr.invalid> wrote:
--
{ SIGWHAT?!!, "BACKSIGNAL" },
/* the processus signal the kill program it disagree
with the previous signal given. See anarchy(3) */
--{ f.m.b.l revisite la command kill }--
-- { SIGWHAT?!!, "BACKSIGNAL" }, /* the processus signal the kill program it disagree with the previous signal given. See anarchy(3) */ --{ f.m.b.l revisite la command kill }--
Thierry Boudet
On 2007-06-05, Thomas wrote:
[:temporaire/GtkAda/testgtk] thomas% ./testgtkconnect localhost port 6000: Connection refused
Tu es bien sur la machine distante, là ? Parce que je trouve
bizarre que la connection soit refusée sur le port 6000... Chez moi, les machines distantes sont plutôt sur le port 6000, qui doit correspondre au 6000 de base de X11 + le 10 que l'on retrouve dans $DISPLAY.
ps: pour la clarté des choses, tu devrais essayer d'avoir un PS1 différent selon les hosts.
-- "Forty-two!" "Is that all you've got to show for seven and a half million years of work?" "I checked it very thoroughly", said the computer...
On 2007-06-05, Thomas <fantome.forums.tDeContes@free.fr.invalid> wrote:
[:temporaire/GtkAda/testgtk] thomas% ./testgtkconnect localhost port
6000: Connection refused
Tu es bien sur la machine distante, là ? Parce que je trouve
bizarre que la connection soit refusée sur le port 6000...
Chez moi, les machines distantes sont plutôt sur le port
6000, qui doit correspondre au 6000 de base de X11 + le 10
que l'on retrouve dans $DISPLAY.
ps: pour la clarté des choses, tu devrais essayer d'avoir un
PS1 différent selon les hosts.
--
"Forty-two!"
"Is that all you've got to show for seven and a half million years of work?"
"I checked it very thoroughly", said the computer...
[:temporaire/GtkAda/testgtk] thomas% ./testgtkconnect localhost port 6000: Connection refused
Tu es bien sur la machine distante, là ? Parce que je trouve
bizarre que la connection soit refusée sur le port 6000... Chez moi, les machines distantes sont plutôt sur le port 6000, qui doit correspondre au 6000 de base de X11 + le 10 que l'on retrouve dans $DISPLAY.
ps: pour la clarté des choses, tu devrais essayer d'avoir un PS1 différent selon les hosts.
-- "Forty-two!" "Is that all you've got to show for seven and a half million years of work?" "I checked it very thoroughly", said the computer...
Vincent Lefevre
Dans l'article , Thomas écrit:
si dans ~/.tcshrc je remplace setenv DISPLAY :0.0 par setenv DISPLAY localhost:0.0 (c'est bien equivalent ?)
Pas sûr, mais c'est toujours aussi mal. Une connexion X forwardée n'est pas en :0, mais plutôt en :10 ou quelque chose du genre (ça dépend de la config du serveur et du nombre de connexions ouvertes).
Dans l'article <fantome.forums.tDeContes-3D4EF1.16040405062007@news-2.proxad.net>,
Thomas <fantome.forums.tDeContes@free.fr.invalid> écrit:
si dans ~/.tcshrc je remplace
setenv DISPLAY :0.0
par
setenv DISPLAY localhost:0.0
(c'est bien equivalent ?)
Pas sûr, mais c'est toujours aussi mal. Une connexion X forwardée
n'est pas en :0, mais plutôt en :10 ou quelque chose du genre (ça
dépend de la config du serveur et du nombre de connexions ouvertes).
si dans ~/.tcshrc je remplace setenv DISPLAY :0.0 par setenv DISPLAY localhost:0.0 (c'est bien equivalent ?)
Pas sûr, mais c'est toujours aussi mal. Une connexion X forwardée n'est pas en :0, mais plutôt en :10 ou quelque chose du genre (ça dépend de la config du serveur et du nombre de connexions ouvertes).
thomas% ssh -X Last login: Tue Jun 5 15:52:30 2007 from 192.168.1.202 Welcome to Darwin! [:~] thomas% cd /Users/thomas/Documents/temporaire/ [:~/Documents/temporaire] thomas% cd GtkAda/testgtk/ [:temporaire/GtkAda/testgtk] thomas% ./testgtk
(testgtk:9904): Gtk-WARNING **: cannot open display: [:temporaire/GtkAda/testgtk] thomas%
Tu as bien pensé à configurer le serveur SSH pour le forward X11? Par défaut, il ne le fait pas:
/etc/sshd_config contient:
#X11Forwarding no
J'ai fait le test chez moi, et le DISPLAY n'est pas mis. Normal. Maintenant, si j'essaie avec le sshd de MacPorts (qui tourne sur le port 2222 et pour lequel j'ai mis X11Forwarding à yes), tout est OK:
prunille:~> ssh -Y -p 2222 localhost Warning: No xauth data; using fake authentication data for X11 forwarding. Last login: Tue Jun 5 17:30:12 2007 from localhost Welcome to Darwin! Connected to prunille.vinc17.org (from ::1) DISPLAY: localhost:10.0 zshenv... zshrc... Shell level: 1 (login shell) The tty is frozen zlogin... prunille:~> echo $DISPLAY localhost:10.0
Dans l'article <fantome.forums.tDeContes-5343A2.15554205062007@news-2.proxad.net>,
Thomas <fantome.forums.tDeContes@free.fr.invalid> écrit:
enfin, je peux tjr le retirer pour voir :
thomas% ssh -X thomas@192.168.1.4
Last login: Tue Jun 5 15:52:30 2007 from 192.168.1.202
Welcome to Darwin!
[:~] thomas% cd /Users/thomas/Documents/temporaire/
[:~/Documents/temporaire] thomas% cd GtkAda/testgtk/
[:temporaire/GtkAda/testgtk] thomas% ./testgtk
(testgtk:9904): Gtk-WARNING **: cannot open display:
[:temporaire/GtkAda/testgtk] thomas%
Tu as bien pensé à configurer le serveur SSH pour le forward X11?
Par défaut, il ne le fait pas:
/etc/sshd_config contient:
#X11Forwarding no
J'ai fait le test chez moi, et le DISPLAY n'est pas mis. Normal.
Maintenant, si j'essaie avec le sshd de MacPorts (qui tourne sur
le port 2222 et pour lequel j'ai mis X11Forwarding à yes), tout
est OK:
prunille:~> ssh -Y -p 2222 localhost
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Tue Jun 5 17:30:12 2007 from localhost
Welcome to Darwin!
Connected to prunille.vinc17.org (from ::1)
DISPLAY: localhost:10.0
zshenv...
zshrc...
Shell level: 1 (login shell)
The tty is frozen
zlogin...
prunille:~> echo $DISPLAY
localhost:10.0
thomas% ssh -X Last login: Tue Jun 5 15:52:30 2007 from 192.168.1.202 Welcome to Darwin! [:~] thomas% cd /Users/thomas/Documents/temporaire/ [:~/Documents/temporaire] thomas% cd GtkAda/testgtk/ [:temporaire/GtkAda/testgtk] thomas% ./testgtk
(testgtk:9904): Gtk-WARNING **: cannot open display: [:temporaire/GtkAda/testgtk] thomas%
Tu as bien pensé à configurer le serveur SSH pour le forward X11? Par défaut, il ne le fait pas:
/etc/sshd_config contient:
#X11Forwarding no
J'ai fait le test chez moi, et le DISPLAY n'est pas mis. Normal. Maintenant, si j'essaie avec le sshd de MacPorts (qui tourne sur le port 2222 et pour lequel j'ai mis X11Forwarding à yes), tout est OK:
prunille:~> ssh -Y -p 2222 localhost Warning: No xauth data; using fake authentication data for X11 forwarding. Last login: Tue Jun 5 17:30:12 2007 from localhost Welcome to Darwin! Connected to prunille.vinc17.org (from ::1) DISPLAY: localhost:10.0 zshenv... zshrc... Shell level: 1 (login shell) The tty is frozen zlogin... prunille:~> echo $DISPLAY localhost:10.0
In article (Dans l'article) <20070605152430$, Vincent Lefevre <vincent+ wrote (écrivait) :
Dans l'article , Thomas écrit:
enfin, je peux tjr le retirer pour voir :
thomas% ssh -X Last login: Tue Jun 5 15:52:30 2007 from 192.168.1.202 Welcome to Darwin! [:~] thomas% cd /Users/thomas/Documents/temporaire/ [:~/Documents/temporaire] thomas% cd GtkAda/testgtk/ [:temporaire/GtkAda/testgtk] thomas% ./testgtk
(testgtk:9904): Gtk-WARNING **: cannot open display: [:temporaire/GtkAda/testgtk] thomas%
Tu as bien pensé à configurer le serveur SSH pour le forward X11? Par défaut, il ne le fait pas:
/etc/sshd_config contient:
#X11Forwarding no
oui, je l'ai indiqué des le 1er msg du fil
J'ai fait le test chez moi, et le DISPLAY n'est pas mis. Normal. Maintenant, si j'essaie avec le sshd de MacPorts
il y a un ssh dans MacPorts ? :-) j'ai cherché mais j'ai pas trouvé (au cas où c'est ssh qui est trop vieux)
-- Informations sur Nicolas Sarkozy : http://www.betapolitique.fr/spip.php?article0602 http://www.betapolitique.fr/spip.php?article0601 http://www.betapolitique.fr/spip.php?article0414 http://www.betapolitique.fr/spip.php?article0606 http://tDeContes.hd.free.fr/divers/Ruptures.pdf
In article (Dans l'article) <20070605152430$5dcc@prunille.vinc17.org>,
Vincent Lefevre <vincent+news@vinc17.org> wrote (écrivait) :
Dans l'article
<fantome.forums.tDeContes-5343A2.15554205062007@news-2.proxad.net>,
Thomas <fantome.forums.tDeContes@free.fr.invalid> écrit:
enfin, je peux tjr le retirer pour voir :
thomas% ssh -X thomas@192.168.1.4
Last login: Tue Jun 5 15:52:30 2007 from 192.168.1.202
Welcome to Darwin!
[:~] thomas% cd /Users/thomas/Documents/temporaire/
[:~/Documents/temporaire] thomas% cd GtkAda/testgtk/
[:temporaire/GtkAda/testgtk] thomas% ./testgtk
(testgtk:9904): Gtk-WARNING **: cannot open display:
[:temporaire/GtkAda/testgtk] thomas%
Tu as bien pensé à configurer le serveur SSH pour le forward X11?
Par défaut, il ne le fait pas:
/etc/sshd_config contient:
#X11Forwarding no
oui, je l'ai indiqué des le 1er msg du fil
J'ai fait le test chez moi, et le DISPLAY n'est pas mis. Normal.
Maintenant, si j'essaie avec le sshd de MacPorts
il y a un ssh dans MacPorts ? :-)
j'ai cherché mais j'ai pas trouvé
(au cas où c'est ssh qui est trop vieux)
--
Informations sur Nicolas Sarkozy :
http://www.betapolitique.fr/spip.php?article0602
http://www.betapolitique.fr/spip.php?article0601
http://www.betapolitique.fr/spip.php?article0414
http://www.betapolitique.fr/spip.php?article0606
http://tDeContes.hd.free.fr/divers/Ruptures.pdf
In article (Dans l'article) <20070605152430$, Vincent Lefevre <vincent+ wrote (écrivait) :
Dans l'article , Thomas écrit:
enfin, je peux tjr le retirer pour voir :
thomas% ssh -X Last login: Tue Jun 5 15:52:30 2007 from 192.168.1.202 Welcome to Darwin! [:~] thomas% cd /Users/thomas/Documents/temporaire/ [:~/Documents/temporaire] thomas% cd GtkAda/testgtk/ [:temporaire/GtkAda/testgtk] thomas% ./testgtk
(testgtk:9904): Gtk-WARNING **: cannot open display: [:temporaire/GtkAda/testgtk] thomas%
Tu as bien pensé à configurer le serveur SSH pour le forward X11? Par défaut, il ne le fait pas:
/etc/sshd_config contient:
#X11Forwarding no
oui, je l'ai indiqué des le 1er msg du fil
J'ai fait le test chez moi, et le DISPLAY n'est pas mis. Normal. Maintenant, si j'essaie avec le sshd de MacPorts
il y a un ssh dans MacPorts ? :-) j'ai cherché mais j'ai pas trouvé (au cas où c'est ssh qui est trop vieux)
-- Informations sur Nicolas Sarkozy : http://www.betapolitique.fr/spip.php?article0602 http://www.betapolitique.fr/spip.php?article0601 http://www.betapolitique.fr/spip.php?article0414 http://www.betapolitique.fr/spip.php?article0606 http://tDeContes.hd.free.fr/divers/Ruptures.pdf
Vincent Lefevre
Dans l'article , Thomas écrit:
il y a un ssh dans MacPorts ? :-) j'ai cherché mais j'ai pas trouvé (au cas où c'est ssh qui est trop vieux)