Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Login to SFTP server using password instead of key
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Thu, 2 Dec 2021 11:03:37 +0100 (CET)
On Thu, 2 Dec 2021, Friedrich-W. Prelle via curl-users wrote:
> Try to connect to an SFTP Server whith user name and password. The server
> offers key authentication and curl does search for the key but not use the
> password.
>
> :\KT\Test>curl.exe -k -v --user "username:password" "sftp://server:22"
> * Trying xxx.xxx.xxx.xxx:22...
I think it looks like a potential bug. It seems curl considers an early error
with the public key auth problem enough to give up instead of continuing and
trying the password auth.
What curl version and ssh library + version is this?
> * SSH public key authentication failed: Unable to extract public key
> from private key file: Unable to open private key file
> * Failure connecting to agent
> * Authentication failure
> * Closing connection 0
> curl: (67) Authentication failure
>
> How can I force curl, to use the password authentication?
It should do that automatically if the public key auth doesn't work.
Date: Thu, 2 Dec 2021 11:03:37 +0100 (CET)
On Thu, 2 Dec 2021, Friedrich-W. Prelle via curl-users wrote:
> Try to connect to an SFTP Server whith user name and password. The server
> offers key authentication and curl does search for the key but not use the
> password.
>
> :\KT\Test>curl.exe -k -v --user "username:password" "sftp://server:22"
> * Trying xxx.xxx.xxx.xxx:22...
I think it looks like a potential bug. It seems curl considers an early error
with the public key auth problem enough to give up instead of continuing and
trying the password auth.
What curl version and ssh library + version is this?
> * SSH public key authentication failed: Unable to extract public key
> from private key file: Unable to open private key file
> * Failure connecting to agent
> * Authentication failure
> * Closing connection 0
> curl: (67) Authentication failure
>
> How can I force curl, to use the password authentication?
It should do that automatically if the public key auth doesn't work.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2021-12-02