Reg curl scp upload/download - filename size 255 chars
Date: Sun, 31 May 2020 10:14:48 +0530
Hi ,
I am trying upload/download a file of size 255 chars. I see scp
download/upload successful upto filename size of 246 chars.
Beyond 246 chars :
*upload : timeout happens*
*download : fails with error "curl: (78) Unterminated response from SCP
server"*
*upload:*
# curl -T test.txt scp://135.249.31.90/home/test/
*123456789981788393912345678123456789981788393912345678998178839391234567899817883939134567899817883939123456789981788393912345678998178839391234567899817883939998178839391234567899817883939123456789981788393967899817883912345678912345678912345.txt*
--user "test:test123"
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
curl: (28) the timeout time was reached
#
*download :*
# curl -o test.txt scp://135.249.31.90/home/test/
*123456789981788393912345678123456789981788393912345678998178839391234567899817883939134567899817883939123456789981788393912345678998178839391234567899817883939998178839391234567899817883939123456789981788393967899817883912345678912345678912345.txt*
--user "test:test123"
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
*curl: (78) Unterminated response from SCP server*
/tmp/syslog #
*For sftp : file upload/download is successful upto 255 chars. Working as
expected.*
/tmp/syslog # curl -V
curl 7.68.0 (i686-buildroot-linux-gnu) libcurl/7.68.0 OpenSSL/1.0.2q
zlib/1.2.11 libssh2/1.9.0
Release-Date: 2020-01-08
Protocols: file ftp ftps http https scp sftp tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM SSL TLS-SRP
UnixSockets
/tmp/syslog #
Regards,
Murugan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-31