curl-users
Re: ssh custom port
Date: Mon, 18 Jul 2016 12:55:45 -0400
hi mike...
this is the exactly what happens (curl 7.16.3):
# curl -vvvv -T test.txt -u user:pass sftp://remote.host.com:10022/upload/
* About to connect() to remote.host.com port 10022 (#0)
* Trying 12.34.56.78... connected
* Connected to remote.host.com (12.34.56.78) port 10022 (#0)
* Failure establishing ssh session
* Closing connection #0
curl: (2) Failure establishing ssh session
is there anything different that you put on the command line?
sftp works fine:
# sftp -oPort=10022 user_at_remote.host.com
Connecting to remote.host.com...
user_at_remote.host.com password:
thanks...
On Fri, Jul 15, 2016 at 3:44 PM, Norton, Mike <mikenorton_at_pwsd76.ab.ca>
wrote:
> I’ve never used sftp with Curl but I just tried, and specifying the URI as
> sftp://host.example.com:12345/path seems to work fine for me. (I’m on
> Curl 7.26.0.)
>
>
>
> The output you pasted does show that Curl is connecting to port 10022. So
> I’m guessing your failure is due to something other than the port. Not sure
> how you jumped to the conclusion that the port is the problem.
>
>
>
> -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-18