public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: ssh tunnel x session - solution
@ 2002-12-10 14:33 Cary Lewis
  0 siblings, 0 replies; only message in thread
From: Cary Lewis @ 2002-12-10 14:33 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

I was having a problem using Xfree and ssh under cygwin.

I want to be able to run a xterm session on a remote cygwin machine on the X
server running on my local cygwin machine.

I can ssh into the remote machine with no problem, and I get an .Xauthority
file, the problem is that the entry has the machine name in CAPITALS, which
causes problems for the X apps.

The following ~/.ssh/rc script fixes the problem, with thanks to Olivier
Baudron:

PATH=$PATH:/usr/X11R6/bin;export PATH
if read proto cookie; then

m=`echo $COMPUTERNAME|tr "[:upper:]" "[:lower:]"`

x=`echo -n $DISPLAY | sed -e s/:/\\\\/unix:/|sed -e s/localhost/$m/`

xauth -q add $x $proto $cookie
xauth list
fi

What is strange, is that if you just do a xauth -q $DISPLAY $proto $cookie
then you get an entry that has the machine name in lowercase but without the
/unix.

BTW, I am still having trouble getting this to work on a SCO unix base,
xauth list looks correct, but I always get:

debug1: confirm x11
debug1: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug1: X11 rejected 1 i0/o0

Very annoying.

--
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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-10 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 14:33 ssh tunnel x session - solution Cary Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).