Mail Archives: cygwin/2003/07/14/08:30:43
Jeffery,
I think your permissions are still not correct. I too have a winXP
system running ssh under cygwin. My permissions are not owned by
SYSTEM:SYSTEM under my home directory, they are owned by me. Glad to
see you got it working, but I think it's a work around. I would suggest
reinstalling and check out this website for install directions.
http://tech.erdelynet.com/cygwin-sshd.html I have followed these many
times without any problems.
Todd C. Bowden
E-mail: Todd DOT Bowden AT atosorigin DOT com
-----Original Message-----
From: Jeffrey Hood [mailto:jhood AT hmcon DOT com]
Sent: Monday, July 14, 2003 6:49 AM
To: cygwin AT cygwin DOT com
Subject: Re: ssh with keys to Cygwin/Openssh on Windows XP
Thanks everyone for all of the help... it seems that my problem was a
permission one, and combined the last post, I figured it out... it
seems that all of the files in ~/.ssh need to be owned by SYSTEM.SYSTEM
(which strikes me as strange, the only thing I can figure out is that
the sshd service is running as the SYSTEM user...) and once I chmod'd
them to SYSTEM.SYSTEM, public key authentication works as it should...
Is there some setting somewhere (maybe in sshd_config or something) that
makes this a requirement, or is it just the way that cygwin sshd
works...?
Thanks,
JH
> It appears that the public key authentication is failing. I am
> assuming you are using SSH protocol version 2 since you do not have a
> key in /home/jhood/.ssh/identity. Do you have both dsa and rsa keys
> in /home/jhood/.ssh/id_rsa and /home/jhood/.ssh/id_dsa?
>
> It would be helpful if you ran the sshd service in debug mode by
> passing the -ddd argument. Are you sure that you copied the public
> key corresponding to the correct private key?
>
> I am running XP Professional with cygwin 1.3.22 and openssh 3.6.1p1-2
> and I have no problem using public key authnentication using the
> openssh client or using Putty.
>
> Good luck,
> Mark
> ----- Original Message -----
> From: "Jeffrey Hood" <jhood AT hmcon DOT com>
> To: <cygwin AT cygwin DOT com>
> Sent: Friday, July 11, 2003 5:02 PM
> Subject: RE: ssh with keys to Cygwin/Openssh on Windows XP
>
>
>> > I use it just fine.
>> >
>> > Im not sure what the issue is.
>> >
>> > 1. Could be /etc/passwd file is not pointing to the correct $HOME
>>
>> /etc/passwd from a cygwin prompt points to /cygdrive/c/home/jhood ...
> just
>> like it should (the .ssh/authorized_keys is in under there...)
>>
>> the keys are in both .ssh/authorized_keys and
>> .ssh/authorized_keys2... I also have them (just in case...) in
>> /home/jhood/.ssh/authorized_keys and
>> /home/jhood/.ssh/authorized_keys2
>>
>> the debug output from ssh -vvv is:
>>
>> debug1: authentications that can continue:
>> publickey,password,keyboard-interactive
>> debug3: start over, passed a different list
>> publickey,password,keyboard-interactive
>> debug3: preferred publickey,keyboard-interactive,password
>> debug3: authmethod_lookup publickey
>> debug3: remaining preferred: keyboard-interactive,password
>> debug3: authmethod_is_enabled publickey
>> debug1: next auth method to try is publickey
>> debug1: try privkey: /home/jhood/.ssh/identity
>> debug3: no such identity: /home/jhood/.ssh/identity
>> debug1: try pubkey: /home/jhood/.ssh/id_rsa
>> debug3: send_pubkey_test
>> debug2: we sent a publickey packet, wait for reply
>> debug1: authentications that can continue:
>> publickey,password,keyboard-interactive
>> debug1: try pubkey: /home/jhood/.ssh/id_dsa
>> debug3: send_pubkey_test
>> debug2: we sent a publickey packet, wait for reply
>> debug1: authentications that can continue:
>> publickey,password,keyboard-interactive
>> debug2: we did not send a packet, disable method
>> debug3: authmethod_lookup keyboard-interactive
>> debug3: remaining preferred: password
>> debug3: authmethod_is_enabled keyboard-interactive
>> debug1: next auth method to try is keyboard-interactive
>> debug2: userauth_kbdint
>> debug2: we sent a keyboard-interactive packet, wait for reply
>> debug1: authentications that can continue:
>> publickey,password,keyboard-interactive
>> debug3: userauth_kbdint: disable: no info_req_seen
>> debug2: we did not send a packet, disable method
>> debug3: authmethod_lookup password
>> debug3: remaining preferred:
>> debug3: authmethod_is_enabled password
>> debug1: next auth method to try is password
>> jhood AT jhoodxp's password:
>>
>> logging in with the password always works... I'm pretty much out of
>> ideas at this point...
>>
>> JH
>>
>>
>> >
>> >
>> > Is there anyone who has had any success getting sshd to work on a
>> > Windows XP box with keys...? I have searche all over and tried
>> > everything in all the things that I have found to get copied keys
>> > in ~/.ssh/authorized_keys to work with the server on a Windows XP
>> > Professional box, and nothing is working... ssh'ing works fine,
>> > just not with automatic logins with keys...
>> >
>> > (Using Cygwin setup 2.249.2.5)
>> >
>> > Thanks in advance...
>> >
>> > JH
>> >
>>
>> --
>>
>> jhood .a.
>> hmcon -d- com
>>
>>
>> --
>> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>> Problem reports: http://cygwin.com/problems.html
>> Documentation: http://cygwin.com/docs.html
>> FAQ: http://cygwin.com/faq/
>>
--
jhood .a.
hmcon -d- com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -