cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl connects to a SFTP, bot doesn't show content of a directory

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 29 Dec 2011 16:38:05 +0100 (CET)

On Thu, 29 Dec 2011, Yura Kaidalov wrote:

> Curl connects to a SFTP, bot doesn't show content of a directory, here's
> command line and output:
>     curl -l -v -u "uname:password" sftp://XX.XXX.X.XX/~/
>     * About to connect() to XX.XXX.X.XX port 22 (#0)
>     *   XX.XXX.X.XX... connected

Is that all output you get?

Which libssh2 version are you using? What's curl's exit code when you try
this?

> In addition. it looks like curl ignores -u option

It really doesn't. You can read the code and see for yourself.

> as when I use an invalid uname:pass, it writes the same output.

That would rather indicate that the name+password isn't enough for curl to
login!

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-29