Mike,
Robert has a good point about using CopSSH. I recently, as of yesterday in
fact, moved from "OpenSSH for Windows" to CopSSH simply because it is
actively being maintained versus "OpenSSH for Windows" which has not been
updated in over a year.
I must say, however, that with CopSSH I copied a new /home/Al/.ssh/Al.pub
key (2048-bit RSA key) to the /home/Al/.ssh/authorized_keys file and not the
authorized_keys2 file as noted by Robert. I am not sure what the
authorized_keys2 file is used for since I can login with the key pair. I
have not modified the authorized_key2 file at all since I installed CopSSH.
Perhaps Robert or someone can educate me...:-)
Al
> -----Original Message-----
> From: ssh@erdelynet.com [mailto:ssh@erdelynet.com] On Behalf
> Of Robert Jacobson
> Sent: Thursday, October 06, 2005 6:29 AM
> To: ssh@erdelynet.com
> Subject: Re: OpenSSH for Windows and key authentication
>
>
> On Oct 5, 2005, at 3:25 PM, Mike diskcrasher-at-yahoo.com |
> ssh_erdelynet| wrote:
>
> > I've been running SSH on my Windows servers using password
> > authentication and things have worked great.
> > Now I want to switch to key authentication and am having trouble
> > getting it to work.
> >
> > Per instructions, I copied the contents of my client keys
> (id_dsa.pub
> > & id_rsa.pub) from the .ssh folder into a file named
> authorized_keys
> > on my server located under c:\documents and
> > settings\administrator\.ssh (since I'm logging on as the
> administrator
> > with SSH.) When I try to connect from my client I get a permissions
> > denied error. Obviously the keys aren't working.
> >
> > Can someone give me an idea to what's wrong? Do I need to
> modify my
> > ssh_config or sshd_config files?
>
> First, what distribution of SSH for windows are you using?
> There are a few... are you using the one from
> sshwindows.sourceforge.net?
>
> No, you do not need to modify the config files. Two possibilities:
>
> 1) I think the file is "authorized_keys2" (you're missing
> the "2" at the end)
>
> 2) The permissions on the .ssh directory must be correct --
> only Administrator and SYSTEM should be able to read them
>
> That said -- if you're using sshwindows -- I recommended you
> uninstall it, and use copSSH. It is much easier to set up,
> IMO, and the key authentication actually *works* (I always
> had to do something manually with permissions when using sshwindows.
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Robert Jacobson Robert.Jacobson@gsfc.nasa.gov
> BS, Aeronautical Engineering Univ. of Md., College Park
> Flight Ops. Team - SOlar Heliospheric Observatory (SOHO)
> (301) 286-1591
>
>
>
> --
> List Archives: http://erdelynet.com/archive/ssh-l/
> To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.com
>
>
-- List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.comReceived on Thu Oct 6 08:47:59 2005
This archive was generated by hypermail 2.1.8 : Thu Oct 06 2005 - 08:48:02 EDT