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

 


Dernière réponse
Sujet : Demarrer session X via SSH c possible ?
Mr YouP 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 ...

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Mr YouP 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 ...
YupYup

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.

benwar chui vraiment un newbies un peut ^plus d'explication son les bienvenue
GUG et aussi l authorise ds /etc/sshd_config  si je me rappelle bien
Mr YouP 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 !!
benwar Tout est dans le sujet.
 
Merci

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)