Questions tagged [lftp]
lftp is a file transfer program that supports several network protocols.
54
questions
1
vote
1
answer
21
views
How to resolve the password prompting issue when setting up lftp connection with sftp and ssh-key in centos?
I have a centos server s1 and client c1 and I wanted to do a lftp connection with sftp and ssh-key without the password been prompted. Currently when I run the below command the password is prompted ...
1
vote
1
answer
407
views
lftp for sftp is not working; stuck on `ls' at 0 [Connecting...]
I am having an issue with lftp where it gets stuck on `ls' at 0 [Connecting...] for an SFTP connection.
Versions:
Linux 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 4 14:55:32 EST 2024 x86_64 x86_64 ...
0
votes
0
answers
40
views
How to stop backup being deleted as soon as it is completed?
Duplicity full backup via ftp completes, then is deleted, all with no user action.
There are 2 things I would like to know;
is there anything in the information below that explains this problem?
...
0
votes
0
answers
82
views
lftp silently refuses to download certain directories, files
I am using the following command:
lftp -c 'user user password ; set xfer:clobber off; set net:max-retries 0; set net:persist-retries 0; mirror --parallel=500 --verbose=10 --only-missing --ignore-time -...
0
votes
0
answers
146
views
lftp: How to list transfer size before (mirror) operation?
I have an lftp job that is going to transfer a large amount of data (30GB) to a slow remote FTP server. For various reasons, it won't work in one shot (which probably will take days anyway) but has ...
0
votes
0
answers
128
views
lftp in shell script fails with "pseudo-tty allocation failed" only when run via cronjob
I am trying to create a shell script which copies a file to a foreign server using SFTP (because SSH is not available on the foreign server). The script works as expected when run via console, but it ...
1
vote
1
answer
943
views
How to run concurrent (parallel) downloads with lftp?
lftp supposedly supports downloading mutliple files concurrently using get -P:
From the NEWS file:
Version 4.8.0 - 2017-07-10
...
* get/mget/put/mput: add -P option for parallel transfers and long ...
2
votes
1
answer
854
views
lftp how to upload everything new inside a folder but not the folder itself
I have this script in the a Pipeline:
lftp -c
"
set ftp:ssl-force true;
set ssl:verify-certificate false;
open -u $FTP_USER,$FTP_PASS $FTP_HOST;
cd remote-folder;
mirror -R -e -v -n ./...
1
vote
1
answer
1k
views
lftp unable to connect to ftp site, but using filezilla can connect successfully
I can successfully connect to ftp server using filezilla with SFTP protocol.
But when I try to connect using lftp, and send ls command for listing remote folder, it just keeps on showing status ...
1
vote
0
answers
1k
views
lftp hangs up on "connecting" when tried to use ACTIVE mode
I need to use lftp in active mode (due to some limitations on the server side). So I have set up the following ~/.lftprc config-file:
debug
set ssl:verify-certificate no
set ftp:port-ipv4 148.X.X.86
...
0
votes
1
answer
900
views
put command work with interactive "ftp", but not with "lftp"
I want to send a file to an FTP server (which is out of my control), and when using the interactive Linux command ftp, this works fine:
[bf@localhost sudap]$ ftp ftp.example.net
Connected to ftp....
0
votes
1
answer
657
views
How to have `lftp` compare directories and only sync changed files?
The entirety of my question is summed up in the title.
If there isn't a way to do this, what FTPS-compatible alternative would allow it?
I'm running Debian GNU/Linux 11 (Bullseye) Stable.
1
vote
1
answer
308
views
Can't delete a hidden file on a linux server
I've a backups linux server where I upload my backups via lftp. I don't have any other way to access this server. For some reason I can't delete a hidden file.
$ls -la
drwxr-xr-x 2 100 ...
0
votes
0
answers
481
views
Is there an alternative command or way to speed up find in LFTP?
There is an FTP server I'm connecting to, and it could possibly have 20-30k zip files and an assortment of subdirectories. I would like to return a list of all of these files based on their extension, ...
0
votes
0
answers
1k
views
Connect to SFTP via a http proxy in lftp?
I am behind a http proxy (http://localhost:8080). I want to connect to my sftp server via this http proxy using the lftp command. How to do that ?
My lftp command now is
lftp sftp://...
How to ...