delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/01/16:24:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: carolus <worwor AT bellsouth DOT net>
Subject: ssh public key authentication problem using curl
Date: Tue, 01 Nov 2011 15:24:10 -0500
Lines: 21
Message-ID: <j8pkhb$b5e$1@dough.gmane.org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019