Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7569313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:08:04+00:00 2026-05-30T15:08:04+00:00

I am building curl with the following configuration : ./configure –with-ssl –with-libssh2 –prefix=/home/yuvi/development/curlssh After

  • 0

I am building curl with the following configuration :

./configure  --with-ssl --with-libssh2 --prefix=/home/yuvi/development/curlssh

After configuration I can see that SCP is Enabled.

  curl version:    7.24.0
  Host setup:      x86_64-unknown-linux-gnu
  Install prefix:  /home/yuvi/development/curlssh
  Compiler:        gcc
  SSL support:     enabled (OpenSSL)
  SSH support:     enabled (libSSH2)
  zlib support:    enabled
  krb4 support:    no      (--with-krb4*)
  GSSAPI support:  no      (--with-gssapi)
  SPNEGO support:  no      (--with-spnego)
  TLS-SRP support: no      (--enable-tls-srp)
  resolver:        default (--enable-ares / --enable-threaded-resolver)
  ipv6 support:    enabled
  IDN support:     no      (--with-libidn)
  Build libcurl:   Shared=yes, Static=yes
  Built-in manual: enabled
  Verbose errors:  enabled (--disable-verbose)
  SSPI support:    no      (--enable-sspi)
  ca cert bundle:  /etc/ssl/certs/ca-certificates.crt
  ca cert path:    no
  LDAP support:    no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)
  LDAPS support:   no      (--enable-ldaps)
  RTSP support:    enabled
  RTMP support:    no      (--with-librtmp)
  Protocols:       DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SCP SFTP SMTP SMTPS TELNET TFTP

But when I run the sample program I am getting following error :

* Protocol scp not supported or disabled in libcurl
* Unsupported protocol

My url is :

curl_easy_setopt(curl, CURLOPT_URL,"scp://192.168.10.1/mnt/dev.zip");

I am able to retrieve file using command prompt through SCP, it means that remote server supports SCP. Then where I am doing wrong…?

Thanks,
Yuvi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:08:06+00:00Added an answer on May 30, 2026 at 3:08 pm

    I would try LD_PRELOAD to make sure the program is using the right libcurl.so. Something like:

    LD_PRELOAD=/home/user/curl-7.24.0/lib/.libs/libcurl.so ldd ./sample-program
    LD_PRELOAD=/home/user/curl-7.24.0/lib/.libs/libcurl.so ./sample-program
    

    In case of linking with the static library libcurl.a, the program contains several symbols with scp as substring:

    $ nm sample-program | grep scp
    08092be0 R Curl_handler_scp
             U libssh2_scp_recv
             U libssh2_scp_send64
    080789e0 t scp_disconnect
    08078bd0 t scp_doing
    08078b00 t scp_done
    08074a80 t scp_recv
    080749f0 t scp_send
    

    This assumes that curl has been compiled with debugging enabled (-g) and that debugging symbols weren’t stripped from sample-program. If output of nm sample-program | grep scp is empty, then:

    • the program uses libcurl.a which was compiled without support for SCP protocol, or
    • the program uses the dynamic library libcurl.so (not the static library libcurl.a)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been building PHP tools with a MySQL backend. Using multi-curl I can run
I'm building a Curl web automation app and am having some issue with not
I am building a book where I will use the page curl animation to
I'm following this Hiphop installation guide: https://github.com/facebook/hiphop-php/wiki/Building-and-installing-on-ubuntu-10.10 And when I try to make it,
I am building an obscure application which is only available after an involved sign-up
I am building the following stored procedure: DELIMITER $$ DROP PROCEDURE IF EXISTS update_alert_system$$
I am executing curl via the following code: // execute process Process pr =
I am building a website crawler and using a cURL class with these options
I'm building up a url to execute with curl. the url will call an
I'm building libcurl to use with a project i'm working on, and after reading

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.