curl-library
Re: How to do sftp without an SSH agent
From: Nick Zitzmann <nick_at_chronosnet.com>
Date: Tue, 16 Apr 2013 15:34:40 -0600
Date: Tue, 16 Apr 2013 15:34:40 -0600
On Apr 16, 2013, at 2:05 PM, ols6000_at_sbcglobal.net wrote:
> I have set CURLSSH_AUTH_ANY, but now how do I get the password SSH apparently requires?
Either put the user name and password into the URL, like this:
sftp://bob:fuzzypickles@example.org/
Or use the options CURLOPT_USERNAME and CURLOPT_PASSWORD to do SSH password authentication. To do SSH public key authentication, put the private key passphrase into CURLOPT_KEYPASSWD.
Nick Zitzmann
<http://www.chronosnet.com/>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-16