Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 5 Jun 2003 17:18:12 +0100 From: Elfyn McBratney X-X-Sender: elfyn AT ellixia Reply-To: cygwin AT cygwin DOT com To: Jonathan Hudgins cc: cygwin AT cygwin DOT com Subject: Re: ssh connection closed In-Reply-To: <3EDF6BDC.6050809@thereinc.com> Message-ID: References: <3EDF6BDC DOT 6050809 AT thereinc DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 5 Jun 2003, Jonathan Hudgins wrote: > I am running sshd per instructions from /usr/doc/Cygwin/openssh-3.6.1p1-2.README. > I choose no privilege speration at setup time > I have also set the following values in sshd_config: > > PasswordAuthentication yes > RhostsAuthentication no > RhostsRSAAuthentication no > RSAAuthentication no > > When I login via ssh I don't get asked for a password (I think > this is ok because I ran ssh-user-config). My problem is > that I get kicked out immediately after logging in. I used to be > able to login fine (even with the setgid failure as below); but now > I can't. Something changed (don't ask me I've tried a lot of > different iterations). > > How do I diagnose this problem further? > /var/log/sshd.log has not been modified for a long time > Is a solution apparent from the given info? > > $ ssh -v localhost > OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090702f > debug1: Reading configuration data /etc/ssh_config > debug1: Rhosts Authentication disabled, originating port will not be trusted. > debug1: Connecting to localhost [127.0.0.1] port 22. > debug1: Connection established. > debug1: identity file /cygdrive/c/.ssh/identity type 0 > debug1: identity file /cygdrive/c/.ssh/id_rsa type 1 > debug1: identity file /cygdrive/c/.ssh/id_dsa type 2 > debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p1 > debug1: match: OpenSSH_3.6.1p1 pat OpenSSH* > [...] > Last login: Thu Jun 5 07:13:15 2003 from jhudgins-pc.pc.there.com > Fanfare!!! > You are successfully logged in to this server!!! > setgid: Invalid argument ^^^^^^^^^^^^^^^^^^^^^^^^ Is your /etc/group file out of sync? Does $ mkgroup -l (or -d for domains) >/etc/group Fix it? > debug1: channel 0: rcvd eof > debug1: channel 0: output open -> drain > debug1: channel 0: obuf empty > debug1: channel 0: close_write > debug1: channel 0: output drain -> closed > debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 > debug1: channel 0: rcvd close > debug1: channel 0: close_read > debug1: channel 0: input open -> closed > debug1: channel 0: almost dead > debug1: channel 0: gc: notify user > debug1: channel 0: gc: user detached > debug1: channel 0: send close > debug1: channel 0: is dead > debug1: channel 0: garbage collecting > debug1: channel_free: channel 0: client-session, nchannels 1 > Connection to localhost closed. > debug1: Transferred: stdin 0, stdout 0, stderr 33 bytes in 0.3 seconds > debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 101.2 > debug1: Exit status 1 Elfyn -- Elfyn McBratney (mailto:spambot AT is DOT ubertales DOT co DOT uk) Systems Administrator ABCtales.com / Ubertales.co.uk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/