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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 17 Nov 2003 12:44:36 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: John Pye cc: cygwin AT cygwin DOT com Subject: Re: 1.5.5: sshd problem In-Reply-To: <3FB8328D.6010507@curioussymbols.com> Message-ID: References: <3FB42AA5 DOT 9090302 AT curioussymbols DOT com> <3FB4359A DOT 3030204 AT student DOT unsw DOT edu DOT au> <3FB8328D DOT 6010507 AT curioussymbols DOT com> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 17 Nov 2003, John Pye wrote: > Thanks for the extra tips, Igor. Do any of these results look strange to > you? > > Igor Pechtchanski wrote: > > >That's the default mode Windows gives it. This should work, but somehow > >doesn't... Can sshd get to all the necessary files and directories? Look > >at the permissions on /etc and the files in it, as well as /bin. > > I tried an ls -l /etc and found > > -rwxr-xr-x 1 SYSTEM None 1159 Nov 13 19:02 ssh_config > -rw------- 1 SYSTEM None 668 Nov 13 19:02 ssh_host_dsa_key > -rw-r--r-- 1 SYSTEM None 599 Nov 13 19:02 ssh_host_dsa_key.pub > -rw------- 1 SYSTEM None 524 Nov 13 19:02 ssh_host_key > -rw-r--r-- 1 SYSTEM None 328 Nov 13 19:02 ssh_host_key.pub > -rw------- 1 SYSTEM None 887 Nov 13 19:02 ssh_host_rsa_key > -rw-r--r-- 1 SYSTEM None 219 Nov 13 19:02 ssh_host_rsa_key.pub > -rw-r--r-- 1 SYSTEM None 2427 Nov 13 19:03 sshd_config > > That looks OK I thought... or is it? Does 'SYSTEM' need to be able to > read those files, or does 'sshd'? Whatever account the ssh daemon is running as (if you use cygrunsrv or the ssh-host-config script, it's most likely "SYSTEM"). How about 'ls -ld /etc'? > I also had a look at /etc/bin and it's all owned by john.Users, for example Huh? /etc/bin? I assume you mean /usr/bin or /bin. > -rwxrwxrwx 1 john Users 19456 Feb 20 2002 split.exe > -rwxrwxrwx 1 john Users 68608 Nov 6 02:47 ssh-add.exe > -rwxrwxrwx 1 john Users 57856 Nov 6 02:47 ssh-agent.exe > -rwxrwxrwx 1 john Users 17333 Nov 6 02:47 ssh-host-config > -rwxrwxrwx 1 john Users 75776 Nov 6 02:47 ssh-keygen.exe > -rwxrwxrwx 1 john Users 130048 Nov 6 02:47 ssh-keyscan.exe > -rwxrwxrwx 1 john Users 6266 Nov 6 02:47 ssh-user-config > -rwxrwxrwx 1 john Users 223232 Nov 6 02:47 ssh.exe > -rwxrwxrwx 1 john Users 18944 Sep 21 06:32 ssp.exe > -rwxrwxrwx 1 john Users 87552 Aug 26 2002 states.exe > -rwxrwxrwx 1 john Users 23552 Sep 21 06:32 strace.exe > > That could be a problem perhaps? Should the 'Users' group contain 'sshd' > or is access for sshd to the /bin executables handled somehow else? No, the access on the files themselves is ok. How about 'ls -ld /bin'? > >Ok, looks like all your mounts are system mounts, unless you simply don't > >have the permission to read the registry keys for the SYSTEM user... > > That seems strange. My home computer has a couple of mounts when I run > that command, but this system has none. However, it works fine locally > (compiling, listing files, /cygdrive/c, etc). I haven't ever tinkered > with the mounts, so I wonder how that comes to be... Couldn't be related > to mingw/msys could it? > > John It's related to the mode you installed Cygwin in ("Just me" vs. "All users"). If you installed for "Just me", you may be missing the necessary mounts for services like sshd to work. Looking at your earlier message, however, I start wondering if we aren't barking up the wrong tree here... On Thu, 13 Nov 2003, John Pye wrote: > I still get the error as shown > > john AT john ~ > $ ssh localhost > ssh_exchange_identification: Connection closed by remote host > > The verbose output is > > $ ssh -vvv localhost > OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003 > debug1: Reading configuration data /etc/ssh_config > debug2: ssh_connect: needpriv 0 > debug1: Connecting to localhost [127.0.0.1] port 22. > debug1: Connection established. > debug1: identity file /home/john/.ssh/identity type 0 > debug3: Not a RSA1 key file /home/john/.ssh/id_rsa. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > debug2: key_type_from_name: unknown key type '-----BEGIN' > debug3: key_read: missing keytype > debug2: key_type_from_name: unknown key type 'Proc-Type:' > debug3: key_read: missing keytype > debug2: key_type_from_name: unknown key type 'DEK-Info:' > debug3: key_read: missing keytype > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug2: key_type_from_name: unknown key type '-----END' > debug3: key_read: missing keytype > debug1: identity file /home/john/.ssh/id_rsa type 1 > debug1: identity file /home/john/.ssh/id_dsa type -1 > ssh_exchange_identification: Connection closed by remote host > debug1: Calling cleanup 0x41bf10(0x0) Could you try removing /home/john/.ssh and re-running /bin/ssh-user-config? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/