Re: [tech] ssh Xforwrding

2005-11-10 Par sujet eric

Jeff Ghislain wrote:


Selon eric [EMAIL PROTECTED]:

 


Bonjour � tous,
voici mon besoin:
j'aimerai voir sur une machine distante (qui s'appelle hp) un session X
d'une autre s'appelant proto. j'ai tout d'abord pens� � ssh -X
[EMAIL PROTECTED], je bataille depuis des heures sans succes. Avez vous des
exp�riences dans ce domaine. Je pensais laisser tomber pour xvncviewer
mais  j'ai lu que c'�tait lent.
   



Bonjour
je relis ici que tu veux voir la session X _d'une autre machine_ alors c'est
bien vnc qu'il te faut. Je ne trouve pas vnc lent sur une station linux!
Le terminal X lui permet de faire tourner une application choisie sur une
machine distante et d'utiliser (voir et agir avec clavier souris) cette
application: un exemple
Si j'ai un PC 486 avec 16Mo de RAM (terminalX) je ne pourrais pas faire tourner
Open Office dessus, par contre je peux faire tourner Open Office sur une plus
grosse machine(monAMD64) et l'utiliser depuis mon terminalX ou meme plusieurs.

 


Quel est le meilleur moyen  pour ouvrir/voir des sessions X � distance.
   


Ouvrir Voir sont 2 choses differentes.


--
Jeff Ghislain

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


 


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc si je 
comprends bien je souhaite faire tourner mon appli sur serveur (proto) 
et deporter sa visualisation sur une machine cliente qui est hp. Je dois 
donc approfondir l'export de display et ssh -X. me trompe-je? ;)

merci
Eric

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding

2005-11-10 Par sujet Jody

Bonjour,

eric wrote:
[...]


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc si 
je comprends bien je souhaite faire tourner mon appli sur serveur 
(proto) et deporter sa visualisation sur une machine cliente qui est 
hp. Je dois donc approfondir l'export de display et ssh -X. me 
trompe-je? ;)


ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests avec 
une de petite taille de préférence au début, surtout si tu passes par 
une connection 512k.



--

Jody

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding

2005-11-10 Par sujet eric

Jody wrote:


Bonjour,

eric wrote:
[...]


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc si 
je comprends bien je souhaite faire tourner mon appli sur serveur 
(proto) et deporter sa visualisation sur une machine cliente qui est 
hp. Je dois donc approfondir l'export de display et ssh -X. me 
trompe-je? ;)



ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests avec 
une de petite taille de préférence au début, surtout si tu passes par 
une connection 512k.



--

Jody

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 



voici une manip propre mas malheureusement problématique
je souhaite de l'export de display sans la couche ssh dans un premier 
temps j'applique les indications de cette page

http://people.via.ecp.fr/~alexis/formation-linux/export-display.html

[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost +proto
proto being added to access control list
[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 12:54:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:11.0 
-( 
que signifie localhost:11.0? 11ème écran?)

[EMAIL PROTECTED]:~$ ps ax | grep X
[EMAIL PROTECTED]:~$ ps ax | grep X
3976 pts/1R+ 0:00 grep X  
-(il n'y a aucun 
serveur X en route sur proto)

[EMAIL PROTECTED]:~$ export DISPLAY=hp:0.0
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0  
( 
proto semble avoir comprit que je voulais
[EMAIL PROTECTED]:~$ startx 

afficher X sur le 1er écran de hp)

Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority 
---(je n'ai pas compris 
l'utilité de ce fichier)


[1] 3977  
--(PID 
de startx : OK)
[EMAIL PROTECTED]:~$ XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-14sarge1 
20050901212727 [EMAIL PROTECTED])

Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.8-16.0508-2 i686 [ELF]
Build Date: 02 September 2005

This version of XFree86 has been extensively modified by the Debian
Project, and is not supported by the XFree86 Project, Inc., in any
way.  Bugs should be reported to the Debian Bug Tracking System; see
URL: http://www.debian.org/Bugs/Reporting .

We strongly encourage the use of the reportbug package and command
to ensure that bug reports contain as much useful information as
possible.

Before filing a bug report, you may want to consult the Debian X FAQ:
  XHTML version: file:///usr/share/doc/xfree86-common/FAQ.xhtml
 plain text version: file:///usr/share/doc/xfree86-common/FAQ.gz

Module Loader present
OS Kernel: Linux version 2.6.8-2-386 ([EMAIL PROTECTED]) 
(gcc version 3.3.5 (Debian 1:3.3.5-12)) #1 Thu May 19 17:40:50 JST 2005

Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/XFree86.0.log, Time: Thu Nov 10 13:14:19 2005
(==) Using config file: /etc/X11/XF86Config-4
Skipping 
/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_clip.o:  No 
symbols found
Skipping 
/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_norm.o:  No 
symbols found
Skipping 
/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_xform.o:  No 
symbols found
Skipping 
/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_vertex.o:  No 
symbols found
Skipping /usr/X11R6/lib/modules/fonts/libspeedo.a:spencode.o:  No 
symbols found

The XKEYBOARD keymap compiler (xkbcomp) reports:
 Warning:  Type ONE_LEVEL has 1 levels, but RALT has 2 symbols
   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server 
--( X puis xfce4 ont été lancé sur proto !!)


[EMAIL PROTECTED]:~$ echo $DISPLAY  

Re: [tech] ssh Xforwrding

2005-11-10 Par sujet malet jean-luc alias cityhunter

eric a écrit:


Jody wrote:


Bonjour,

eric wrote:
[...]


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc si 
je comprends bien je souhaite faire tourner mon appli sur serveur 
(proto) et deporter sa visualisation sur une machine cliente qui est 
hp. Je dois donc approfondir l'export de display et ssh -X. me 
trompe-je? ;)




ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests avec 
une de petite taille de préférence au début, surtout si tu passes par 
une connection 512k.



--

Jody

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 



voici une manip propre mas malheureusement problématique
je souhaite de l'export de display sans la couche ssh dans un premier 
temps j'applique les indications de cette page

http://people.via.ecp.fr/~alexis/formation-linux/export-display.html

[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost +proto
proto being added to access control list
[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 12:54:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:11.0 
-( 
que signifie localhost:11.0? 11ème écran?)

[EMAIL PROTECTED]:~$ ps ax | grep X
[EMAIL PROTECTED]:~$ ps ax | grep X
3976 pts/1R+ 0:00 grep X  
-(il n'y a aucun 
serveur X en route sur proto)

[EMAIL PROTECTED]:~$ export DISPLAY=hp:0.0
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0  
( 
proto semble avoir comprit que je voulais
[EMAIL PROTECTED]:~$ startx 

afficher X sur le 1er écran de hp)

Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority 
---(je n'ai pas compris 
l'utilité de ce fichier) 


ouhlala! tu peux pas faire cela : startx est un script qui lance X qui 
lui est le serveur X, tu peux pas demander à un serveur X de se 
connecter à un autre.

essaie la mm manip avec kwrite au lieu de startx. par ex




Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding

2005-11-10 Par sujet eric

malet jean-luc alias cityhunter wrote:


eric a écrit:


Jody wrote:


Bonjour,

eric wrote:
[...]


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc 
si je comprends bien je souhaite faire tourner mon appli sur 
serveur (proto) et deporter sa visualisation sur une machine 
cliente qui est hp. Je dois donc approfondir l'export de display et 
ssh -X. me trompe-je? ;)





ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests 
avec une de petite taille de préférence au début, surtout si tu 
passes par une connection 512k.



--

Jody

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 



voici une manip propre mas malheureusement problématique
je souhaite de l'export de display sans la couche ssh dans un premier 
temps j'applique les indications de cette page

http://people.via.ecp.fr/~alexis/formation-linux/export-display.html

[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost +proto
proto being added to access control list
[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free 
software;

the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 12:54:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:11.0 
-( 
que signifie localhost:11.0? 11ème écran?)

[EMAIL PROTECTED]:~$ ps ax | grep X
[EMAIL PROTECTED]:~$ ps ax | grep X
3976 pts/1R+ 0:00 grep X  
-(il n'y a aucun 
serveur X en route sur proto)

[EMAIL PROTECTED]:~$ export DISPLAY=hp:0.0
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0  
( 
proto semble avoir comprit que je voulais
[EMAIL PROTECTED]:~$ startx 

afficher X sur le 1er écran de hp)

Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority 
---(je n'ai pas compris 
l'utilité de ce fichier) 



ouhlala! tu peux pas faire cela : startx est un script qui lance X qui 
lui est le serveur X, tu peux pas demander à un serveur X de se 
connecter à un autre.

essaie la mm manip avec kwrite au lieu de startx. par ex


Bonjour,
je n'ai pas grand chose d'installé sur proto, voilà ce que je peux essayer
[EMAIL PROTECTED]:~$ xterm
xterm Xt error: Can't open display: hp:0.0
[EMAIL PROTECTED]:~$ mozilla -display: hp:0.0

(mozilla-bin:4690): Gtk-WARNING **: cannot open display:
[EMAIL PROTECTED]:~$ mozilla
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0

rien ne ce passe de plus ni sur hp ni sur proto

merci pour ton aide ;)






Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 





Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding

2005-11-10 Par sujet malet jean-luc alias cityhunter

eric a écrit:


malet jean-luc alias cityhunter wrote:


eric a écrit:


Jody wrote:


Bonjour,

eric wrote:
[...]


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc 
si je comprends bien je souhaite faire tourner mon appli sur 
serveur (proto) et deporter sa visualisation sur une machine 
cliente qui est hp. Je dois donc approfondir l'export de display 
et ssh -X. me trompe-je? ;)






ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests 
avec une de petite taille de préférence au début, surtout si tu 
passes par une connection 512k.



--

Jody

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 



voici une manip propre mas malheureusement problématique
je souhaite de l'export de display sans la couche ssh dans un 
premier temps j'applique les indications de cette page

http://people.via.ecp.fr/~alexis/formation-linux/export-display.html

[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost +proto
proto being added to access control list
[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free 
software;

the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 12:54:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:11.0 
-( 
que signifie localhost:11.0? 11ème écran?)

[EMAIL PROTECTED]:~$ ps ax | grep X
[EMAIL PROTECTED]:~$ ps ax | grep X
3976 pts/1R+ 0:00 grep X  
-(il n'y a aucun 
serveur X en route sur proto)

[EMAIL PROTECTED]:~$ export DISPLAY=hp:0.0
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0  
( 
proto semble avoir comprit que je voulais
[EMAIL PROTECTED]:~$ startx 

afficher X sur le 1er écran de hp)

Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority 
---(je n'ai pas compris 
l'utilité de ce fichier) 




ouhlala! tu peux pas faire cela : startx est un script qui lance X 
qui lui est le serveur X, tu peux pas demander à un serveur X de se 
connecter à un autre.

essaie la mm manip avec kwrite au lieu de startx. par ex



Bonjour,
je n'ai pas grand chose d'installé sur proto, voilà ce que je peux 
essayer

[EMAIL PROTECTED]:~$ xterm
xterm Xt error: Can't open display: hp:0.0
[EMAIL PROTECTED]:~$ mozilla -display: hp:0.0

(mozilla-bin:4690): Gtk-WARNING **: cannot open display:
[EMAIL PROTECTED]:~$ mozilla
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0

rien ne ce passe de plus ni sur hp ni sur proto

merci pour ton aide ;)


essaie de manière temporaire sans sécurité

$ xhost +
$ ssh -X [EMAIL PROTECTED]
$ echo $DISPLAY
$ xterm

si cela marche pas : vérifie que les noms hp/proto sont bien corrects 
(ie correspondent bien aux ip des machine dans /etc/hosts)


sinon modifie DISPLAY pour bypasser le DISPLAY de ssh..

cela ressemble vraiment à un pb de xhost




Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding - problème de xhost

2005-11-10 Par sujet eric

malet jean-luc alias cityhunter wrote:


eric a écrit:


malet jean-luc alias cityhunter wrote:


eric a écrit:


Jody wrote:


Bonjour,

eric wrote:
[...]


Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc 
si je comprends bien je souhaite faire tourner mon appli sur 
serveur (proto) et deporter sa visualisation sur une machine 
cliente qui est hp. Je dois donc approfondir l'export de display 
et ssh -X. me trompe-je? ;)







ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests 
avec une de petite taille de préférence au début, surtout si tu 
passes par une connection 512k.



--

Jody

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 



voici une manip propre mas malheureusement problématique
je souhaite de l'export de display sans la couche ssh dans un 
premier temps j'applique les indications de cette page

http://people.via.ecp.fr/~alexis/formation-linux/export-display.html

[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost +proto
proto being added to access control list
[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free 
software;

the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 12:54:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:11.0 
-( 
que signifie localhost:11.0? 11ème écran?)

[EMAIL PROTECTED]:~$ ps ax | grep X
[EMAIL PROTECTED]:~$ ps ax | grep X
3976 pts/1R+ 0:00 grep X  
-(il n'y a 
aucun serveur X en route sur proto)

[EMAIL PROTECTED]:~$ export DISPLAY=hp:0.0
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0  
( 
proto semble avoir comprit que je voulais
[EMAIL PROTECTED]:~$ startx 

afficher X sur le 1er écran de hp)

Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority 
---(je n'ai pas compris 
l'utilité de ce fichier) 





ouhlala! tu peux pas faire cela : startx est un script qui lance X 
qui lui est le serveur X, tu peux pas demander à un serveur X de se 
connecter à un autre.

essaie la mm manip avec kwrite au lieu de startx. par ex




Bonjour,
je n'ai pas grand chose d'installé sur proto, voilà ce que je peux 
essayer

[EMAIL PROTECTED]:~$ xterm
xterm Xt error: Can't open display: hp:0.0
[EMAIL PROTECTED]:~$ mozilla -display: hp:0.0

(mozilla-bin:4690): Gtk-WARNING **: cannot open display:
[EMAIL PROTECTED]:~$ mozilla
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0

rien ne ce passe de plus ni sur hp ni sur proto

merci pour ton aide ;)


essaie de manière temporaire sans sécurité

$ xhost +
$ ssh -X [EMAIL PROTECTED]
$ echo $DISPLAY
$ xterm

si cela marche pas : vérifie que les noms hp/proto sont bien corrects 
(ie correspondent bien aux ip des machine dans /etc/hosts)


sinon modifie DISPLAY pour bypasser le DISPLAY de ssh..

cela ressemble vraiment à un pb de xhost




Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 



YAHOOO
y'a quelque chose qui marche!!
pas trés securite mais quand même!
ton intution est exacte, j'ai fais comme tu as dis

[EMAIL PROTECTED] xhost +
access control disabled, clients can connect from any host
[EMAIL PROTECTED] ping proto 
--- les noms 
fonctionnent

PING proto.localdomain (192.168.1.6): 56 data bytes
64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=0.2 ms
64 bytes from 192.168.1.6: icmp_seq=1 ttl=64 time=0.1 ms

--- proto.localdomain ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO 

Re: [tech] ssh Xforwrding - problème de xhost - fin

2005-11-10 Par sujet eric

eric wrote:

pour faire court, j'ai continué
le xhost + de JLM a été trés efficace, car il a tout débloqué

[EMAIL PROTECTED] xhost -
access control enabled, only authorized clients can connect
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:.etc

Last login: Thu Nov 10 17:44:48 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ mozilla  
--(mozilla s'affiche)

[1] 4833
[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost 
-( 
il ya avait un problème car avant le déblocage dexhost cette 
commande me donnait en réponse une ligne blanche)

access control enabled, only authorized clients can connect
INET:proto.localdomain
[EMAIL PROTECTED] 
je pense que la situation est un minimum sécurisée et que le problème 
est résolu (je vais quand rbooter les 2), tant pis pour l'origine


Merci à jean luc, jody, jeff, frederic
à bientôt



Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding - problème de xhost - fin

2005-11-10 Par sujet Jody

Bonjour,

eric wrote:


[...]
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:.etc [...]

C'est marrant je ne me sers jamais de l'option -X et ssh fait suivre X 
tout seul sans xhost.


Kaella powa ? :)


Merci à jean luc, jody, jeff, frederic
à bientôt
 


De rien, ssh c'est génial !

Si tu veux faire suivre un port, par exemple le 80 sur lequel écoute ton 
serveur web, caché derrière un routeur ne laissant passer que par le 
port 22 (celui par défaut de ssh):


ssh -N -L 80:localhost:80 [EMAIL PROTECTED]

à effectuer en root pour le port 80,eric étant ton nom d'utilisateur sur 
la machine distante (celle du serveur web)


Ensuite en local, tu pourras accéder, via l'adresse http://localhost , 
au serveur http de ta machine distante via une connection sécurisée.


Tu peux changer les ports bien sûr, exemple pour renvoyer le serveur 
distant sur le port 8080 local:


ssh -N -L 8080:localhost:80 [EMAIL PROTECTED]

Tu y accèderas ainsi en local via:

http://localhost:8080


Jody


Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


[tech] ssh Xforwrding

2005-11-09 Par sujet eric

Bonjour à tous,
voici mon besoin:
j'aimerai voir sur une machine distante (qui s'appelle hp) un session X 
d'une autre s'appelant proto. j'ai tout d'abord pensé à ssh -X 
[EMAIL PROTECTED], je bataille depuis des heures sans succes. Avez vous des 
expériences dans ce domaine. Je pensais laisser tomber pour xvncviewer 
mais  j'ai lu que c'était lent. Quel est le meilleur moyen  pour 
ouvrir/voir des sessions X à distance (et cryptées). J'ai lu sur le net 
que ssh XFORWARDING demande qu'il y ait une session X déjà ouverte coté 
serveur. Est ce vrai?


PS/ Si quelqu'un a une idée, voici ce que j'ai fais.
Modif des fichiers de conf de ssh et sshd comme expliqué dans le manuel 
(je l'ai fait aux 2 machines)

/etc/ssh/sshd_conf

StrictModes yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
X11UseLocalhost yes
PrintLastLog no
KeepAlive yes
..

/etc/ssh/ssh_config
Host *
  ForwardAgent yes
  ForwardX11 yes
  ForwardX11Trusted yes
  RhostsRSAAuthentication no
  RSAAuthentication yes
  PasswordAuthentication yes
  HostbasedAuthentication 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
..
et Cependant voila ce que j'obtiens:

[EMAIL PROTECTED] ssh -X -v [EMAIL PROTECTED]
OpenSSH_4.2p1 Debian-5, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to proto [192.168.1.6] port 22.
debug1: Connection established.
debug1: identity file /home/eric/.ssh/identity type -1
debug1: identity file /home/eric/.ssh/id_rsa type -1
debug1: identity file /home/eric/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version 
OpenSSH_3.8.1p1 Debian-8.sarge.4

debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2p1 Debian-5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server-client aes128-cbc hmac-md5 none
debug1: kex: client-server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'proto' is known and matches the RSA host key.
debug1: Found key in /home/eric/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/eric/.ssh/identity
debug1: Trying private key: /home/eric/.ssh/id_rsa
debug1: Offering public key: /home/eric/.ssh/id_dsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LC_ALL = [EMAIL PROTECTED]
debug1: Sending env LANG = [EMAIL PROTECTED]
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Wed Nov  9 19:59:18 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ xterm
xterm Xt error: Can't open display:
xterm:  DISPLAY is not set
[EMAIL PROTECTED]:~$ 



Merci pour votre aide
Eric


Linux-Azur :  http://www.linux-azur.org
Désinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding

2005-11-09 Par sujet Jeff Ghislain
Selon eric [EMAIL PROTECTED]:

 Bonjour � tous,
 voici mon besoin:
 j'aimerai voir sur une machine distante (qui s'appelle hp) un session X
 d'une autre s'appelant proto. j'ai tout d'abord pens� � ssh -X

Il faut bien comprendre que sur la machine hp il te faut un SERVEUR X (qui
affiche un ecran graphique et non pas une console) dans ce serveur X tu pourras
avec un parametrage correct utiliser une application 'cliente' qui s'execute SUR
proto et dont l'affichage est report� sur hp.

 [EMAIL PROTECTED]:~$ xterm
 xterm Xt error: Can't open display:
 xterm:  DISPLAY is not set
 [EMAIL PROTECTED]:~$
La tu essaye de lancer un 'xterm' dans une console la reponse est qu'il n'y a
pas de DISPLAY (serveur X) disponible pour lancer l'application.

Bon c'est sur que �a n'est pas �vident, il vaut mieux bien comprendre le
m�canisme de l'export de DISPLAY avant de mettre le ssh par dessus.

Faire un peu (beaucoup ;o) de lecture sur terminal X etc...
http://people.via.ecp.fr/~alexis/formation-linux/export-display.html
entre autre ...


--
Jeff Ghislain

Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP