FW: Can not config sshd

Prentis Brooks prentis@aol.net
Fri May 26 05:27:00 GMT 2000


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@sourceware.cygnus.com
[ mailto:cygwin-owner@sourceware.cygnus.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@sourceware.cygnus.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list