X11 fowarding, cygwin, and ssh

From: gyromagnetic (gyromagnetic@excite.com)
Date: 01/30/02


From: gyromagnetic@excite.com (gyromagnetic)
Date: 30 Jan 2002 06:08:18 -0800

Hi,
I am attempting to connect and forward X from cygwin on a win2k box
(GYRO - OpenSSH_3.0.2p1) to a linux box (zaphod - redhat 7.2,
openssh-2.9p2-12).

On GYRO, I have the following in ~/.ssh/config:
ForwardAgent yes
ForwardX11 yes

On zaphod, I have the following in /etc/ssh/sshd_config:
...
X11Forwarding yes
X11DisplayOffset 10
...

The problem is that the display is not being set on the server and the
X session is not being forwarded. Please see the transcript below for
details of the session. How do I get the display to be set on the
server and allow X forwarding? Any advice is appreciated.

Thanks for your help.

-gyro

---- transcript begin ---

[br@GYRO ~]:echo $DISPLAY
gyro:0

[br@GYRO ~]: ssh -v -X zaphod

debug1: Reading configuration data /home/br/.ssh/config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 13768 geteuid 13768 anon 1
debug1: Connecting to zaphod [x.x.x.x] port 22.
debug1: temporarily_use_uid: 13768/10513 (e=13768)
debug1: restore_uid
debug1: temporarily_use_uid: 13768/10513 (e=13768)
debug1: restore_uid
debug1: Connection established.
debug1: identity file /home/br/.ssh/identity type -1
debug1: identity file /home/br/.ssh/id_rsa type -1
debug1: identity file /home/br/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_2.9p2
debug1: match: OpenSSH_2.9p2 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.0.2p1
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 sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 122/256
debug1: bits set: 1038/2049
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'zaphod' is known and matches the RSA host key.
debug1: Found key in /home/br/.ssh/known_hosts:1
debug1: bits set: 1024/2049
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT

debug1: authentications that can continue:
publickey,password,keyboard-interacti
ve
debug1: next auth method to try is publickey
debug1: try privkey: /home/br/.ssh/identity
debug1: try privkey: /home/br/.ssh/id_rsa
debug1: try pubkey: /home/br/.ssh/id_dsa
debug1: input_userauth_pk_ok: pkalg ssh-dss blen 433 lastkey
0x100b4720 hint 2
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/br/.ssh/id_dsa':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/br/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
debug1: ssh-userauth2 successful: method publickey
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel request 0: shell
debug1: channel 0: open confirm rwindow 0 rmax 16384
[br@zaphod ~]:echo $DISPLAY

[br@zaphod ~]:

---- transcript end ---



Relevant Pages

  • X forwarding OpenSSH 3.6p1, DISPLAY variable not set
    ... I am having trouble getting X forwarding to work since I installed ... Protocol mismatch. ... debug1: Reading configuration data /etc/ssh/ssh_config ... # This is the sshd server system-wide configuration file. ...
    (comp.security.ssh)
  • Re: X11 Forwarding on a Headless Linux Box
    ... but that the X client can't connect to the SSH X proxy ... Perhaps the name "host" does not refer correctly to the remote ... debug1: Requesting X11 forwarding with authentication spoofing. ...
    (comp.security.ssh)
  • trouble with passwdless
    ... ssh -v follows: ... debug1: Rhosts Authentication disabled, originating port will not be trusted. ... debug1: read PEM private key done: type DSA ... debug1: channel request 0: exec ...
    (comp.security.ssh)
  • ssh connection refuses to connect once authenticated
    ... debug1: Reading configuration data /usr/etc/ssh_config ... debug1: read PEM private key done: type DSA ... debug1: channel 0: new ...
    (SSH)
  • sftp help needed
    ... I am trying to use sftp between 2 solaris boxes. ... debug1: Rhosts Authentication disabled, ... debug1: read PEM private key done: type DSA ... debug1: channel 0: new ...
    (comp.security.ssh)