X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.1 required=5.0	tests=AWL,BAYES_40,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Thu, 3 Nov 2011 19:51:32 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <245272265.20111103195132@mtu-net.ru>
To: carolus <worwor@bellsouth.net>, cygwin@cygwin.com
Subject: Re: ssh public key authentication problem using curl
In-Reply-To: <j8pkhb$b5e$1@dough.gmane.org>
References: <j8pkhb$b5e$1@dough.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Greetings, carolus!

> 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

What was exact command?

> 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).

Again: What was exact command?


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 03.11.2011, <19:51>

Sorry for my terrible english...


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

