Bug 1553 - key based (authorized_keys2) authentication is not working in Windows 2003
Summary: key based (authorized_keys2) authentication is not working in Windows 2003
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 4.2p1
Hardware: Other Other
: P2 critical
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 16:47 AEDT by Ashish
Modified: 2010-04-16 15:51 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashish 2009-02-09 16:47:57 AEDT
Hi,

Following are the steps to reproduce the bug.

1. Installed openssh 4.2p1-1 in Windows Server 2003 + SP2.
2. Use following commands to create user and group/password creation,
   net user root test@123 /add
   mkdir \"Documents and Settings"\root\.ssh
   cd \"Documents and Settings"
   cacls root /T /P everyone:F 
   cd \
   cd \"Program Files"\OpenSSH\bin"
   mkgroup -l > ..\etc\group
   mkpasswd -l > ..\etc\passwd
   net start opensshd
3. Use ssh-keygen -t rsa command to generate the key as follows. Use empty for no passphrase.
4. Copy the id_rsa.pub key as authorized_keys2
5. Restart the openssh service.
6. Prompting for password while checking self authentication using 'ssh root@IPAddress pwd' command. 
   
Regards
Ashish
Comment 1 Ashish 2009-02-10 14:37:08 AEDT
After doing all these steps (public key sharing) user should not promt for password. Is there anything I have to change in sshd_config file?
Comment 2 Damien Miller 2009-02-10 14:40:35 AEDT
OpenSSH 4.2 is quite old and not supported by the developers. Please try to recreate your problem with a recent version (i.e. 5.1) and attach a server debug trace.
Comment 3 Ashish 2009-02-16 15:36:49 AEDT
I found various download path's for OpenSSH 5.1 on net (google) but I am not able to download from those links, those links are not working. Do you have any particular path from where I can download the OpenSSH 5.1 for Windows?
Comment 4 Damien Miller 2009-02-16 15:41:05 AEDT
The best place to get OpenSSH for Windows is as part of Cygwin: http://www.cygwin.com/

Cygwin tracks the current version of OpenSSH quite closely.
Comment 5 Damien Miller 2009-11-10 13:29:58 AEDT
If you can replicate this bug with the most recent version of OpenSSH, and after checking with a Cygwin support site then please reopen this bug.
Comment 6 Damien Miller 2010-04-16 15:51:01 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1