1748027 Members
4995 Online
108757 Solutions
New Discussion

Curl SFTP dependencies

 
SOLVED
Go to solution
Timothy P. Jackson
Valued Contributor

Curl SFTP dependencies

Hello Everyone,

I just installed curl package...

ixCurl_ixCurl_A.20.00-7.28.1.001_HP-UX_B.11.31_IA_PA.depot

and am trying to use SFTP and I get the following error.....

Protocol sftp not supported or disabled in libcurl

Any ideas on  what i need to do to resolve this. The software was downloaded from HP so I figured that all the correct libraries were installed.

Any help would be greatly appreciated!

6 REPLIES 6
Bill Hassell
Honored Contributor

Re: Curl SFTP dependencies

>> Protocol sftp not supported or disabled in libcurl <<

Looks like you have some work ahead of you.
This protocol seems to be a common libcurl issue:

http://andrewberls.com/blog/post/adding-sftp-support-to-curl
https://curl.haxx.se/docs/faq.html



Bill Hassell, sysadmin
Timothy P. Jackson
Valued Contributor
Solution

Re: Curl SFTP dependencies

Hi Bill,

Thanks for the quick response and sorry it took me this long to respond!

Yes, this was a LOT of work and there is no cookbook for it.

As both of those two documents you need to download libssh2 and compile it as well as cURL and compile it including the libssh2 library. The cURL release that comes with Iexpress is a little outdated so I had to go to the cURL site and use the latest release.

I have a document with the steps that I used in my final compilation of libssh2 and cURL. Hopefully it will help someone in the future NOT to have to go through what I did. :)

Unfortunately, I cant remember how to add a Word document to these posts.... :(

ranganath ramachandra
Esteemed Contributor

Re: Curl SFTP dependencies

Use the "Browse" button under the text box on the "Reply" page (check attached screen-grab).

If it is all text, pasting it right into the message would give easier access to the information.

 
--
ranga
[i work for hpe]

Accept or Kudo

Dennis Handly
Acclaimed Contributor

Re: Curl SFTP dependencies

>I cant remember how to add a Word document to these posts

 

No need to remember because now you can't.  Unless you add .jpg to the end and let people know to remove it.

(We asked for .txt but that's excluded too.)

https://community.hpe.com/t5/Announcements/Changes-to-File-Attachment-Security-Policy-on-the-Hewlett/td-p/6884253

pooderbill
Valued Contributor

Re: Curl SFTP dependencies

Or save the doc file in .txt format (ie, notepad). Text files should be acceptable but if that fails, just paste the notepad text into a post.
James Calfas
Occasional Advisor

Re: Curl SFTP dependencies

I was able to get curl to work with sftp, using a new version of curl dated July 1, 2022.  To do this, I had to install the following packages from Porting and Archiving:

curl-7.84.0-ia64_64-11.31.depot.gz
gnutls-3.6.6-ia64_64-11.31.depot.gz
libiconv-1.17-ia64_64-11.31.depot.gz
libssh2-1.9.0-ia64_64-11.31.depot.gz
libtasn1-4.18.0-ia64_64-11.31.depot.gz
libunistring-1.0-ia64_64-11.31.depot.gz
nettle-3.8-ia64_64-11.31.depot.gz
openldap-2.6.2-ia64_64-11.31.depot.gz
p11_kit-0.23.2-ia64_64-11.31.depot.gz

Your system may already have some of these packages, but this is what I had to install.