This is the mail archive of the cygwin 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: password authentication fails in cygwin openssh windows xp pro


Dan Miller wrote:

> OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
> debug1: Reading configuration data /etc/ssh_config
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to localhost [127.0.0.1] port 22.
> debug1: Connection established.
> debug1: identity file /home/dan/.ssh/identity type -1
> debug1: identity file /home/dan/.ssh/id_rsa type -1
> debug1: identity file /home/dan/.ssh/id_dsa type -1

These last 3 mean you didn't use ssh-user-config, contrary of what you said
before... but that is not the problem.

[snip]
> Permission denied, please try again.
> debug3: packet_send2: adding 64 (len 48 padlen 16 extra_pad 64)
> debug2: we sent a password packet, wait for reply
> debug1: Authentications that can continue: publickey,password
> Permission denied, please try again.
> debug3: packet_send2: adding 64 (len 48 padlen 16 extra_pad 64)
> debug2: we sent a password packet, wait for reply
> debug1: Authentications that can continue: publickey,password
> debug2: we did not send a packet, disable method
> debug1: No more authentication methods to try.
> Permission denied (publickey,password).

OK, nothing unusual here.

Does user "dan" has a non-empty password?  If no, are you sure you are using the
correct exact password?  The output above shows what happens when you use the
wrong password, uppercase/lowercase/length has to be correct.

Did you change anything in /etc/sshd_config?

Let's try public key:

As user "dan" run ssh-user-config, it should ask you a few things and take some
time to generate your private/public keys.

Check that the keys were created in /home/dan/.ssh (names are identity, id_dsa,
id_rsa, and the same with .pub extension -- not all 3 are necessary but at least
one of the id_[dr]sa is); if they were not created check the permissions on
~/.ssh, they should be "drwxr---- dan None".

Run `cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys` (change id_dsa.pub if you
don't have the rsa key).

Try again `ssh dan@localhost`, this time you are using password-less login
(public key).
-- 
René Berber


--
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/


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