cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem authenticating with DSA key using SFTP and CURL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 30 Nov 2011 12:04:57 -0800

On Wed, Nov 30, 2011 at 11:36:39AM -0800, Alvaro Palma wrote:
> 2.- Using RSA key:
>
> [16:31 alvarop@LOCAL_SERVER ~]% ~/bin/curl -v -T transfer.log sftp://REMOTE_SERVER/~ --key ~/.ssh/id_rsa --pubkey ~/.ssh/id_rsa.pub
> * About to connect() to REMOTE_SERVER port 22 (#0)
> * Trying 10.12.198.52... % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* SSH host check: 0, key: AAAAB3NzaC1yc2EAAAABIwAAAIEA85XF6V98F0pxBIophM2AvQnCgcdZWwVvulYfYjhWvxc/3b6r+sGHjCKRIZQLM7Hpjcy4iM+1WPDUVWfyNUQ62qFWWcWnC8QQuF+WB4i00j2BLinHirExMbA4fsVJMHgWhWidQp4mATxLzAlzAKCzW8r55i1vyk8VWcep8sGeZD8=
> * SSH authentication methods available: publickey,gssapi-with-mic,password
> * Using ssh public key file /remote/home/alvaro/.ssh/id_rsa.pub
> * Using ssh private key file /remote/home/alvaro/.ssh/id_rsa
> * SSH public key authentication failed: Username/PublicKey combination invalid
> 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0* Authentication failure
> * Closing connection #0
> curl: (67) Authentication failure
>
> Any ideas?!?!?

Have you tried setting a user name with -u ?

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-30