This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: can connect to sshd on linux but not on cygwin


On Tue, May 14, 2002 at 05:32:29PM +0200, Gerrit P. Haase wrote:
> Mark schrieb:
> 
> > I have it working on Win2K.
> 
> > Have you checked your permissions on these files?
> 
> >   1. Your home directory -- should be 700
> 
> >   2. ~/.ssh -- should be 700
> 
> >   3. ~/.ssh/id_dsa, ~/.ssh/id_rsa, ~/.ssh/identity -- should be 600.
> 
> I changed all the permissions as you suggested (well the identity files
> were already 600) on the server and on my client here.  Still cannot
> connect.  I figured out how to connect with my id_dsa last week.
> The problem is my collegue, he also wants to use the box but has only
> RSA keys.  So if I turn off RSA auth he cannot connect and if I turn on
> I cannot connect.  Weird is that it works with for us both at the Linux
> box (there is an older openssh version running).

What do you mean by "RSA", an RSA key for ssh1 auth or an RSA key
for ssh2 auth? 

Assuming your sshd_config contains

  Protocol 2,1

and your collegue has a ssh1 RSA key, he has to use '-1' on
the CLI.  Otherwise, if sshd_config contains
  Protocol 1,2

you have to use -2 on the CLI.

Another approach is to change your and your collegues ~/.ssh/config
on the client box to do the right thing when connecting to that
server, anyway.

Btw., RSA is assumed to be more secure than DSA.  I suggest using an
ssh2 RSA key, too.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]