public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ssh public key authentication problem using curl
@ 2011-11-01 20:24 carolus
  2011-11-03 16:05 ` Andrey Repin
  2011-11-03 23:09 ` Yaakov (Cygwin/X)
  0 siblings, 2 replies; 9+ messages in thread
From: carolus @ 2011-11-01 20:24 UTC (permalink / raw)
  To: cygwin

After setup with ssh-host-config, ssh-user-config, and ssh-copy-id, 
public key authentication works with ssh but fails with curl. (Password 
authentication works with curl -u, but is less convenient.)

curl -v shows:

  SSH authentication methods available: 
publickey,password,keyboard-interactive
  Using ssh public key file /home/cdr/.ssh/id_dsa.pub
  Using ssh private key file /home/cdr/.ssh/id_dsa
  SSH public key authentication failed: Username/PublicKey combination 
invalid
  Authentication failure

However, ssh authenticates OK using RSA. ssh -v shows:

  Next authentication method: publickey
  Offering public key: /home/cdr/.ssh/id_rsa
  Server accepts key: pkalg ssh-rsa blen 279
  read PEM private key done: type RSA
  Authentication succeeded (publickey).


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-10  1:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-01 20:24 ssh public key authentication problem using curl carolus
2011-11-03 16:05 ` Andrey Repin
2011-11-03 23:52   ` carolus
2011-11-04 19:35     ` Andrey Repin
2011-11-04 21:55       ` carolus
2011-11-10  1:20         ` Andrey Repin
2011-11-03 23:09 ` Yaakov (Cygwin/X)
2011-11-03 23:58   ` carolus
2011-11-04  0:40     ` carolus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).