cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: ssh custom port

From: el kalin <kalin_at_el.net>
Date: Mon, 18 Jul 2016 18:54:22 -0400

ok. got it... this worked:

curl -vvvv -T test.txt -u user:pass --insecure sftp://
remote.host.com:10022/home/user/upload/

which is a unusual since it's exposing more than it should but it's not my
server, so...

thanks to all who replied...

On Mon, Jul 18, 2016 at 6:25 PM, Norton, Mike <mikenorton_at_pwsd76.ab.ca>
wrote:

> According to Curl manpage, filename can be specified, or folder name can
> be specified with trailing slash. So either should work.
>
> When you used Curl you were trying to upload to the "/upload" folder. But
> when you used the sftp utility, you were uploading to the
> "/home/user/upload" folder. So the reason one works but one doesn't is
> because you are using two different paths. Use the correct path and Curl
> will probably work.
>
> -mn
>
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-users
> FAQ: https://curl.haxx.se/docs/faq.html
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-19