Questions tagged [lftp]

lftp is a sophisticated terminal-based file transfer program with support for FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols. BitTorrent is also supported.

lftp is a sophisticated terminal-based file retrieval program with support for FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols.

lftp supports background jobs, mirroring sites, and using multiple connections to speed up downloading of large files. If the program is exited while a file transfer is in progress it will automatically put itself into the background to complete any remaining jobs.

241 questions
13
votes
2 answers

Cannot connect lftp to IIS FTP with SSL

I have setup lftp on Ubuntu server and I am trying to connect to an IIS FTP. On IIS it is configured with a self signed certificate and using WinSCP it connects Ok with Explicit option of SSL. But using lftp command though it connects, when I enter…
sski
  • 830
  • 1
  • 8
  • 15
13
votes
1 answer

LFTP active mode with servers that do not recognize the PORT command

I am using LFTP to transfer files from a server, which unfortunately does not recognize the PORT command. I do not have control over the server (do not know in detail what server is) and I have to use the active mode. This is the command line…
Marco
  • 1,642
  • 3
  • 16
  • 29
13
votes
4 answers

lftp with key + passphrase

I'm using lftp to send files to an SFTP server, but I don't how to connect with key and passphrase. So in sftp, I can do this: sftp -i .ssh/id_rsa.mykey login@my.host.fr Enter passphrase for key '.ssh/id_rsa.mykey': my passphrase here So, how can I…
Hakadel
  • 258
  • 1
  • 3
  • 9
11
votes
2 answers

Why does the lftp mirror command chmod files

I'm very new to lftp, so forgive my ignorance. I just ran a dry run of my lftp script, which consists basically of a line like this: mirror -Rv -x regexp --only-existing --only-newer --dry-run /local/root/dir /remote/dir When it prints what it's…
Jeremy
  • 1,960
  • 4
  • 21
  • 42
11
votes
1 answer

Download and delete remote files using lftp

I can't figure out how to download AND delete remote files using lftp using the command line only. Using bash is also OK. What are the flags and the full command line? All I can figure out is the mirror command, but that leaves files on the remote…
John
  • 1,243
  • 4
  • 15
  • 34
11
votes
2 answers

Why lftp mirror --only-newer does not transfer "only newer" file?

I want to automate to upload files of my websites. But, remote server does not support ssh, so I try lftp command below instead of rsync. lftp -c "set ftp:use-mdtm no && set ftp:timezone -9 && open -u user,password ftp.example.com && mirror -Ren…
Noah Kobayashi
  • 111
  • 1
  • 1
  • 4
11
votes
1 answer

Search Within Files On Remote FTP Site

I am looking for a way to search within all files / directories on a remote ftp server for a certain line of text. So far I am using Cygwin to make the ftp connection using lftp. The furthest I've got is using the command: ls -l | grep…
Baxter
  • 5,633
  • 24
  • 69
  • 105
10
votes
3 answers

Homebrew Can't Find LFTP Formula on macOS Sierra

I just upgraded to macOS Sierra and installed brew to get some packages. Previously I used LFTP to sync files from a remote server more quickly. However, after upgrading to Sierra, brew can no longer install LFTP. After using brew install lftp I…
sirryankennedy
  • 257
  • 1
  • 4
  • 9
10
votes
8 answers

How do I get lftp to use SSL/TLS security mechanism from the command line?

I'm trying to log into an ftps site. I've tried giving the login creds at the command line (and putting set parameters in ~/.lftprc, then opening an lftp session and typing those parameters with lftp job control statements. Regardless, I keep…
user2105469
  • 1,413
  • 3
  • 20
  • 37
8
votes
2 answers

lftp error: port 22: no matching host key type found. Their offer: ssh-dss

How do I fix this error, no matching host key type found. Their offer: ssh-dss when doing lftp on a vm with Ubuntu 18.04 installed. I've tried adding Host * PubkeyAcceptedKeyTypes=+ssh-dss to my ~/.ssh/config file, but I am still seeing the…
pavbagel
  • 611
  • 2
  • 6
  • 17
8
votes
4 answers

LFTP - Create directory if it does not exist

I would like to use LFTP to create a directory if it does not exist. It should be a "one-liner": This does already work: lftp -c "open -u user,pass server; mkdir /test The lftp -c "open -u user,pass server; mkdir -p /test fails if the directory…
MyFault
  • 427
  • 1
  • 6
  • 21
7
votes
1 answer

Deleting a file with LFTP using variables

I'm trying to delete a file from an FTP server in my shell scrip using LFTP, but for some reason it will not use my variables, and takes them as literals. The…
Svante
  • 1,069
  • 3
  • 12
  • 28
7
votes
2 answers

lftp: "FEAT negotiation" message when I try to sync a remote (no SSL) folder with a local folder

I want to sync a remote folder with a local folder using lftp. When I installed the first time "lftp" and I created this script: #!/bin/bash #get username and password USER=... #Your username PASS=... #Your password HOST="..." …
Giacomo M
  • 4,450
  • 7
  • 28
  • 57
7
votes
1 answer

ls filename does not work in lftp

I created an lftp script to upload single files to a web hosting provider. The use case is that I call it from the repository root, so the relative path is the same here and in the remote server. #!/bin/bash DIRNAME=$(dirname…
Gergely
  • 6,879
  • 6
  • 25
  • 35
7
votes
1 answer

Verify LFTP transfer success

I am using lftp to transfer files from local to a remote server which only allows SFTP access. I am using the following syntax to transfer the files : lftp -c "open -u $UN,$Pass sftp://$Server ; mirror -R $Directory" And this is working all fine…
Ashish Kaushik
  • 71
  • 1
  • 1
  • 4
1
2 3
16 17