Demarrer session X via SSH c possible ?

Demarrer session X via SSH c possible ? - Linux et OS Alternatifs

Marsh Posté le 05-06-2002 à 12:20:41    

Tout est dans le sujet.
 
Merci

Reply

Marsh Posté le 05-06-2002 à 12:20:41   

Reply

Marsh Posté le 05-06-2002 à 13:43:25    

Pour lancer une session X, je sais pas mais si tu veux faire afficher les fenêtres sur ton ordi distant, il faut repositionner la variable d'environnement DISPLAY.
 
exemple :
ssh IP_distant
 
setenv DISPLAY monIP:0
nom_du_logiciel
 
et hop ça s'affiche !!

Reply

Marsh Posté le 05-06-2002 à 13:46:40    

et aussi l authorise ds /etc/sshd_config  si je me rappelle bien

Reply

Marsh Posté le 05-06-2002 à 15:38:44    

chui vraiment un newbies un peut ^plus d'explication son les bienvenue

Reply

Marsh Posté le 05-06-2002 à 15:45:30    

Code :
  1. X11 and TCP forwarding
  2.      If the ForwardX11 variable is set to ``yes'' (or, see the description of
  3.      the -X and -x options described later) and the user is using X11 (the
  4.      DISPLAY environment variable is set), the connection to the X11 display
  5.      is automatically forwarded to the remote side in such a way that any X11
  6.      programs started from the shell (or command) will go through the
  7.      encrypted channel, and the connection to the real X server will be made
  8.      from the local machine.  The user should not manually set DISPLAY.  For­
  9.      warding of X11 connections can be configured on the command line or in
  10.      configuration files.
  11.      The DISPLAY value set by ssh will point to the server machine, but with a
  12.      display number greater than zero.  This is normal, and happens because
  13.      ssh creates a ``proxy'' X server on the server machine for forwarding the
  14.      connections over the encrypted channel.
  15.      ssh will also automatically set up Xauthority data on the server machine.
  16.      For this purpose, it will generate a random authorization cookie, store
  17.      it in Xauthority on the server, and verify that any forwarded connections
  18.      carry this cookie and replace it by the real cookie when the connection
  19.      is opened.  The real authentication cookie is never sent to the server
  20.      machine (and no cookies are sent in the plain).
  21.      If the user is using an authentication agent, the connection to the agent
  22.      is automatically forwarded to the remote side unless disabled on the com­
  23.      mand line or in a configuration file.
  24.      Forwarding of arbitrary TCP/IP connections over the secure channel can be
  25.      specified either on the command line or in a configuration file.  One
  26.      possible application of TCP/IP forwarding is a secure connection to an
  27.      electronic purse; another is going through firewalls.


rtfm.


---------------
"The marketing guys said the HP-35 would be a failure because it was too small, and then we couldn't make them fast enough to meet the demand. The marketing folks don't know everything." - Bill Hewlett
Reply

Marsh Posté le 05-06-2002 à 17:20:19    

ben un peu plus d'explication c'est dur !
tu tape ce que j'ai écrit et ça marche ...  
 
DISPLAY est la variable d'environnement qui lui dit où afficher les fenêtres, a partir du moment où tu lui dit de l'afficher sur la machine cliente, il le fait
 
aller un exemple avec des @ ip
 
ssh 192.192.168.1
user:toto
password:
setenv DISPLAY 192.192.168.2:0
konqueror
 
.. et là konqueror s'affiche sur la machine 192.192.168.2
 
c'est beau ...

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed