https://access.redhat.com/solutions/327823
SOLUTION 已验证 - 已更新 2017年三月28日12:38 -
环境
- Red Hat Enterprise Linux 5 (RHEL 5)
- Red Hat Enterprise Linux 6 (RHEL 6)
- Red Hat Enterprise Linux 7 (RHEL 7)
问题
- What features are available in my installed version of curl?
- For example, how can I confirm if there is a curl version for Red Hat Enterprise Linux 5 available which has scp/sftp support?
- Does curl for Red Hat Enterprise Linux 7 includes a support for SPNEGO?
决议
-
Execute curl with the -V flag to display information about curl and the libcurl version it uses.
-
Red Hat Enterprise Linux 5
$ curl -V
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
The initial support for SCP and SFTP was included upstream via the 7.16.1 release. As RHEL 5 is at the end in the life cycle where Red Hat adds new functionality to components and the focus is on stability, SCP and SFTP support will not be added to the curl version available for RHEL 5.
- Red Hat Entperise Linux 6
$ curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
- Red Hat Enterprise Linux 7
$ curl -V
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.15.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz
诊断步骤
- man curl(1)
-V/--version
Displays information about curl and the libcurl version it uses.
The first line includes the full version of curl, libcurl and other 3rd party libraries linked with the executable.
The second line (starts with "Protocols:") shows all protocols that libcurl reports to support.
The third line (starts with "Features:") shows specific features libcurl reports to offer. Available features include:
IPv6 You can use IPv6 with this.
krb4 Krb4 for FTP is supported.
SSL HTTPS and FTPS are supported.
libz Automatic decompression of compressed files over HTTP is supported.
NTLM NTLM authentication is supported.
GSS-Negotiate
Negotiate authentication and krb5 for FTP is supported.
Debug This curl uses a libcurl built with Debug. This enables more error-tracking and memory debugging etc. For curl-develop-
ers only!
AsynchDNS
This curl uses asynchronous name resolves.
SPNEGO SPNEGO Negotiate authentication is supported.
Largefile
This curl supports transfers of large files, files larger than 2GB.
IDN This curl supports IDN - international domain names.
SSPI SSPI is supported. If you use NTLM and set a blank user name, curl will authenticate with your current user and pass-
word.