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(1024<1024<8192) 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 ****

Répondre à