-
-
Couldn't load subscription status.
- Fork 6.9k
Description
I did this
Executed below command to transmit a file through sftp:
curl -k -u user_id:password -B -T <source_filename> sftp://<remote_host>/<target_direcotry> -m 120
I expected the following
When target_direcotry is full on the remote host, the above-mentioned curl sftp command is getting hung for forever. -m i.e. --max-time 120 is not working
curl/libcurl version
The command: yum list curl*
shows:
Installed Packages
curl.x86_64 7.19.7-53.el6_9 @rhel-6-server-rpms
Linux administration team told that latest version of curl has already been installed.
But,
[curl -V output]
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 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
Please confirm if --max-time (-m) 120 works with the curl version (curl.x86_64 7.19.7-53.el6_9)
operating system
Linux <host_name> 2.6.32-696.30.1.el6.x86_64 #1 SMP Fri May 18 11:50:44 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux