cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: ssh custom port

From: Jim Young <j4young_at_gmail.com>
Date: Mon, 18 Jul 2016 13:41:47 -0500
On 7/18/2016 11:59 AM, el kalin wrote:


thanks ray... 

the version is 7.16.3.

if it works with sftp though - which means ssh itself is not really the issue -  why wouldn't it work with curl?


1) That version of curl is pretty old (ancient in "internet years")  I think that's what comes with Red Hat by default which they haven't updated in a long, long time.  I'd get a newer version for your system and try that.  You can download pre-compiled versions for most systems and test with them even if you don't have admin rights on your particular system.
2) As to why it works with ssh but not curl - they could be using different libraries.  One could be using a dynamically loaded system library and the other a statically linked library.  You also may need to update the system ssl library if it's old. 

So - get a new version of curl and try it.  If it still doesn't work, do a "curl -V" and cut & paste the result on your next post.  You might also want to post what OS you're running on, version levels of the OS etc.  There can be configuration issues with some OS'es that limit which programs are allowed to use non-standard ports.

Jim Young

-------------------------------------------------------------------
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