www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/11/11:23:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Sender: slc AT aurora DOT jhuapl DOT edu
Message-Id: <37384A01.6E5A0A4E@jhuapl.edu>
Date: Tue, 11 May 1999 11:17:21 -0400
From: Steve Coleman <Steve DOT Coleman AT jhuapl DOT edu>
Organization: Johns Hopkins Applied Physics Laboratory
X-Mailer: Mozilla 4.5 [en] (X11; U; SunOS 5.6 sun4m)
X-Accept-Language: en
Mime-Version: 1.0
To: Juha =?iso-8859-1?Q?J=E4ykk=E4?= <juhaj AT iki DOT fi>
Cc: gnu-win32 AT cygnus DOT com
Subject: Re: sshd1 v1.2.26, b20.1, tty problems (most likely)
References: <003a01be9ad6$d1102e50$1123a4d8 AT sos DOT home> <3737C39A DOT 3FBAF40B AT iki DOT fi>

Juha Jdykkd wrote:

>   No help. Nothing changes. sshd1 still receives TTY -1, ls complains
> about bad file number and something causes a logout from my newly
> created shell immediately. 

I may have had the same problem, though my memory about it may be a
little fuzzy now. To diagnose the problem I set my STRACE to 0x10 and
started the daemon with -d in one window while I tried to login from
another. The strace output reveiled that the xauth add host/unix:0
syntax was failing which caused subsequent tty and shell problems (I
don't remember these problems specifically), and eventually causing my
daemon and shell (both bash and tcsh) to abort. I commented out the
following block of code from sshd.c and I was back in business.

#ifndef CRAY
                        /* Cray xauth cannot take host/unix:0 as
displayname *
                        fprintf(f, "add %.*s/unix%s %s %s\n",
                                cp - display, display, cp, auth_proto,
                                auth_data); */
#endif                                          

Try using the STRACE flag to verify a similar xauth failure. If this is
the source of your problem then perhaps we should add this to the sshd.c
patch list. It may however be a system dependent patch based on your
X-Windows implementation. 

FYI - I am using Exceed V6.1 for my X server.

Good luck!

-- 
Steve Coleman     <Steve DOT Coleman AT jhuapl DOT edu>   http://www.jhuapl.edu/
<<--------->> Johns Hopkins Applied Physics Laboratory <<---------->>
Balt:443-778-6330 Fax:443-778-5597 Wash:240-228-6330 Fax:240-228-5597

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019