This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: X11 forwarding


On Fri, 4 Oct 2002, Thomas Schweikle wrote:

> Hi!
>
> Bitte antworten an cygwin@cygwin.com
> An:     Thomas Schweikle <tschweikle@fiducia.de>
> Kopie:  cygwin@cygwin.com
> Thema:  Re: X11 forwarding
>
> > On Thu, 3 Oct 2002, Thomas Schweikle wrote:
> >
> >> Hi!
> >> connecting cygwin ssh to a linux box with
> >>    ssh -X -l user host
> >> doesn't do X11 forwarding. I am shure it is enabled by sshd
> >> on the server side. Any clues where I have to look to make
> >> it work?
>
> [...]
>
> > Also, try 'ssh -v -X -l user host' (you can replace '-l user
> > host' with 'user@host', BTW, with an added benefit that bash
> > will complete the hostname from /etc/hosts for you).  If this
> > output is not verbose enough, you can add extra 'v's to
> > increase verbosity.
>
> $ ssh -vvv -X -l home picolo.home
> OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
> debug1: Reading configuration data /etc/ssh_config
> debug1: Applying options for *
> debug1: Rhosts Authentication disabled, originating port will not be trusted.
> debug1: ssh_connect: needpriv 0
> debug1: Connecting to picolo.home [192.168.107.123] port 22.
> debug1: Connection established.
> debug1: identity file //maple/home/.ssh/identity type 0
> debug1: identity file //maple/home/.ssh/id_rsa type -1
> debug1: identity file //maple/home/.ssh/id_dsa type -1
> debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1
> debug1: match: OpenSSH_3.4p1 pat OpenSSH*
> debug1: Local version string SSH-1.5-OpenSSH_3.4p1
> debug1: Waiting for server public key.
> debug1: Received server public key (768 bits) and host key (1024 bits).
> debug1: Host 'picolo.home' is known and matches the RSA1 host key.
> debug1: Found key in //maple/home/.ssh/known_hosts:15
> debug1: Encryption type: 3des
> debug1: Sent encrypted session key.
> debug1: cipher_init: set keylen (16 -> 32)
> debug1: cipher_init: set keylen (16 -> 32)
> debug1: Installing crc compensation attack detector.
> debug1: Received encrypted confirmation.
> debug1: Trying RSA authentication with key '//maple/home/.ssh/identity'
> debug1: Received RSA challenge from server.
> debug1: Sending response to host key RSA challenge.
> debug1: Remote: RSA authentication accepted.
> debug1: RSA authentication accepted by server.
> debug1: Requesting pty.
> debug1: fd 3 setting TCP_NODELAY
> debug1: Requesting shell.
> debug1: Entering interactive session.
> Last login: Thu Oct  3 20:05:39 2002 from 192.168.19.105
> Have a lot of fun...
> home@yc9a880w:~>
>
> looks like X11-forwarding is never touched.
> Client:
> OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
> exceed 7.0.1
> Windows 2000 SP#3, Cygwin 1.3.9
>
> OpenSSH-Server:
> OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
> SuSE Linux 8.0

X11 forwarding is only initiated if the DISPLAY variable is set.  Try
setting DISPLAY to "localhost:0.0", for example, and run 'ssh -v -X
user@host' again.  You should see this in the log:

debug1: RSA authentication accepted by server.
debug1: Requesting pty.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: fd 3 setting TCP_NODELAY

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]