Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Prentis Brooks" To: "cygwin" Subject: RE: FW: Can not config sshd Date: Fri, 26 May 2000 08:39:48 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal To answer the textmode question: cat -A of .shosts and /etc/ssh_known_hosts show each line ending with $ Does that denote a binmode or textmode file (ie is binmode $ or ^M?) -----Original Message----- From: cygwin-owner AT sourceware DOT cygnus DOT com [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of Prentis Brooks Sent: Friday, May 26, 2000 8:28 AM To: cygwin Subject: RE: FW: Can not config sshd I think I found the problem, if not the solution. They are not textmode, unless vim automatically creates textmode files, I will check that also. What I have found is that since this user has his home dir as / when openssh tries to create the /.ssh directory it does so with the following notation: //.ssh which fails. to give another for instance if I do an ls -la // the resulting output returns "No such file or directory" for everything except the mount points I created for other harddrives. It further looks like openssh may be looking for //.shosts to resolve rhost authentication, does this sound right? Is the behavior relating to // correct on my box or does this happen to clue someone into what I have done wrong *grin*. And yes, the user I am using to run inetd and sshd is the user I am trying to login as, and also has all appropriate rights to login as someone else for the password authentication. I have shutdown inetd and am running sshd -d on all further tests until I resolve this issue. ideas, clues, comments? -----Original Message----- From: cygwin-owner AT sourceware DOT cygnus DOT com [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of Corinna Vinschen Sent: Friday, May 26, 2000 4:22 AM To: Prentis Brooks Cc: cygwin Subject: Re: FW: Can not config sshd Prentis Brooks wrote: > > I am running it as the user I want to RSA as. I also have all my system > mounts set to binary. Could the files still be in text mode? What I am They can if you have created them as text mode files. Copying to a binary mount doesn't change the line endings. If so, simply convert with vim/tr/recode/whateveryouwant. > trying to do is a bit odd, I am sure as I need both worlds. I have created > two entries in my services file for sshd... or rather sshd and sshbak (sshd > at 22 sshbak at 26) Then created two entries in inetd each with a different Careful! Which user account is starting your inetd? Please, read again what I have written in my previous mail. If you want to use RSA you MUST start sshd under YOUR user account. Is inetd running under your user account? If so, you must have appropriate privileges to let the other sshd do it's password authentication. Besides that (and the usage of inetd), it doesn't sound odd. > config file. One config allows RSA and the other allows password only. As > I understood, this should be all I need to do, beyond the basics for rhosts > and RSA. If this is starting to sound real complicated and you have time to > go into detail with me, I will send you details of my config directly. I would prefer that you first check each method for itself. As you mentioned, you are able to run sshd for password authentication. Ok. Deacvtivate 'em, then start sshd with your RSA related config file from the command line in debug mode: sshd -d The try to authenticate from another shell on the same machine: ssh -v 127.0.0.1 Now you can see what happens. This is much better then trying to debug a service session! Corinna -- Corinna Vinschen Cygwin Developer Cygnus Solutions, a Red Hat company -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com