添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
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.

Login to SFTP server using password instead of key

From : Friedrich-W. Prelle via curl-users < curl-users_at_lists.haxx.se > Date : Thu, 2 Dec 2021 08:22:27 +0100

I am searching for a solution for the following issue:
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" "s ftp://server:22 " *   Trying xxx.xxx.xxx.xxx:22... * Connected to server (xxx.xxx.xxx.xxx) port 22 (#0) * SSH MD5 public key: NULL * SSH SHA256 public key: NULL * SSH authentication methods available: publickey,password * Using SSH private key file '' * 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?
Thanks for any help. Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.html Received on 2021-12-02
  • This message : [ Message body ]
  • Next message : Daniel Stenberg via curl-users: "Re: Login to SFTP server using password instead of key"
  • Next in thread : Daniel Stenberg via curl-users: "Re: Login to SFTP server using password instead of key"
  • Reply : Daniel Stenberg via curl-users: "Re: Login to SFTP server using password instead of key"
  • Maybe reply : Friedrich-W. Prelle via curl-users: "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 ]
  •