Not sure if this is a Unix problem but I need to send a file to one of our trading partners. They recently didsabled ftp on port 10021 and now only allow sftp on port 10022. My problem is that when I use curl to do this it consistently fails when I try and send a file with a filename longer than 8 characters. The recipient require the date and time and a bunch of other characters. Any suggestions as to how I can overcome the limit on the length of the filename?
AIX Version 7.1. (7100-01-03-1207).
curl version 7.19.2 (powerpc-ibm-aix5.1.0.0) libcurl/7.19.2 OpenSSL/0.9.8w zlib/1.2.6 li bidn/1.24 libssh2/0.18 Protocols: tftp ftp telnet dict http file https ftps scp sftp Features: IDN IPv6 Largefile NTLM SSL libz
ATTEMPTING TO SEND FILE >>> 12345xyz <<<
USING COMMAND ...
!/opt/freeware/bin/curl -T "/tmp/temp/12345xyz" --insecure --ftp-pasv -u *****:***** "sftp://ftp.test.iconnectdata.com:10022"
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 105 951 0 0 105 951 0 869 0:00:01 0:00:01 --:--:-- 869 RETURN TO CONTINUE OR e'X'it ? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ATTEMPTING TO SEND FILE >>> 123456xyz <<<
USING COMMAND ...
!/opt/freeware/bin/curl -T "/tmp/temp/123456xyz" --insecure --ftp-pasv -u *****:***** "sftp://ftp.test.iconnectdata.com:10022"
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ****curl: (79) Upload failed: Bad message from SFTP server**** RETURN TO CONTINUE OR e'X'it ? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Neil.
Aucun commentaire:
Enregistrer un commentaire