When using lftp to get/rename files on a remote sftp server, I get the error "get: Access failed: File not found". This happens for get, mget, mv, but not for. Here is how I call the command (the debug 10 output is below):
lftp -e " debug 10; ls test.sh ; get test.sh ; " -u xxxxx,yyyyy sftp://sftp.company1.com I get the same error if I call lftp then manually connect and try to download the file. If I write the command as follows, it works, but I can not rename a file with this syntax: lftp -c " mget sftp://xxxxx:[EMAIL PROTECTED]/test.sh ; " All the above methods work when I connect to a local sftp server (OpenSSH). Any thoughts/suggestions? ------------------------------- [EMAIL PROTECTED] tmp]$ lftp -e " debug 10; ls ; get test.sh ; " -u raleys,xxxxx sftp://sftp.qrs.com ---- Running connect program (ssh -ax -s -l raleys sftp.qrs.com sftp) ---> sending a packet, length=5, type=1(INIT), id=0 <--- Authorized users only [EMAIL PROTECTED]'s password: XXXX <--- got a packet, length=5, type=2(VERSION), id=0 ---- protocol version set to 3 ---> sending a packet, length=10, type=16(REALPATH), id=1 <--- got a packet, length=43, type=104(NAME), id=1 ---- home set to /Usr/xxxxx ---> sending a packet, length=10, type=11(OPENDIR), id=2 <--- got a packet, length=10, type=102(HANDLE), id=2 ---- got file handle 31 (1) ---> sending a packet, length=10, type=12(READDIR), id=3 ---> sending a packet, length=10, type=12(READDIR), id=4 ---> sending a packet, length=10, type=12(READDIR), id=5 ---> sending a packet, length=10, type=12(READDIR), id=6 ---> sending a packet, length=10, type=12(READDIR), id=7 ---> sending a packet, length=10, type=12(READDIR), id=8 ---> sending a packet, length=10, type=12(READDIR), id=9 ---> sending a packet, length=10, type=12(READDIR), id=10 <--- got a packet, length=219, type=104(NAME), id=3 ---- file name count=2 ---> sending a packet, length=10, type=12(READDIR), id=11 <--- got a packet, length=22, type=101(STATUS), id=4 ---- eof <--- got a packet, length=22, type=101(STATUS), id=5 ---> sending a packet, length=10, type=4(CLOSE), id=12 <--- got a packet, length=22, type=101(STATUS), id=6 <--- got a packet, length=22, type=101(STATUS), id=7 copy: get hit eof copy: waiting for put confirmation -rw-rw-rw- 1 user group 20 Jul 6 09:17 raltest.dat -rw-rw-rw- 1 user group 58 Jul 6 10:42 test.sh <--- got a packet, length=22, type=101(STATUS), id=8 <--- got a packet, length=22, type=101(STATUS), id=9 copy: put confirmed store copy: get is finished - all done <--- got a packet, length=22, type=101(STATUS), id=10 ---> sending a packet, length=24, type=3(OPEN), id=13 <--- got a packet, length=22, type=101(STATUS), id=11 <--- got a packet, length=21, type=101(STATUS), id=12 <--- got a packet, length=10, type=102(HANDLE), id=13 ---- got file handle 31 (1) ---> sending a packet, length=10, type=8(FSTAT), id=14 ---> sending a packet, length=22, type=5(READ), id=15 ---> sending a packet, length=22, type=5(READ), id=16 ---> sending a packet, length=22, type=5(READ), id=17 ---> sending a packet, length=22, type=5(READ), id=18 ---> sending a packet, length=22, type=5(READ), id=19 ---> sending a packet, length=22, type=5(READ), id=20 ---> sending a packet, length=22, type=5(READ), id=21 <--- got a packet, length=33, type=101(STATUS), id=14 ---> sending a packet, length=10, type=4(CLOSE), id=22 <--- got a packet, length=67, type=103(DATA), id=15 get: Access failed: File not found (test.sh) <--- got a packet, length=22, type=101(STATUS), id=16 <--- got a packet, length=22, type=101(STATUS), id=17 <--- got a packet, length=22, type=101(STATUS), id=18 <--- got a packet, length=22, type=101(STATUS), id=19 <--- got a packet, length=22, type=101(STATUS), id=20 <--- got a packet, length=22, type=101(STATUS), id=21 ---- Disconnecting
