This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: ssh connection closed
- From: Elfyn McBratney <elfyn at is dot ubertales dot co dot uk>
- To: Jonathan Hudgins <jhudgins at thereinc dot com>
- Cc: cygwin at cygwin dot com
- Date: Thu, 5 Jun 2003 17:18:12 +0100
- Subject: Re: ssh connection closed
- References: <3EDF6BDC.6050809@thereinc.com>
- Reply-to: cygwin at cygwin dot com
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@is.ubertales.co.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/