Skip to content

Lftp ​

Lftp is a file transfer program that allows sophisticated ftp, http and other connections to other hosts. If site is specified then lftp will connect to that site otherwise a connection has to be established with the open command.

TIP

Lftp can be used as an alternative to sftp when transfering files in and out of Kista.

Installation ​

Install Lftp in your lab ​

Log into your lab machine and run one of the following codes to install Lftp:

Conda ​

bash
conda install -r conda-forge lftp

Apt ​

bash
sudo apt install lftp

Install Lftp in your local computer ​

OS X / MacOS
bash
brew install lftp

Note that the code above requires Homebrew package manager.

Ubuntu
bash
sudo apt install lftp

Usage ​

We recommend that you read the Lftp manuals to get yourself up and running. The guides provides and extensive overview of Lftp features.

Connecting to Kista ​

To connect to your kista over Lftp you will need to prepend the alias with sftp://, example:

bash
lftp sftp://<username>-<role>:@<kista_hostname_or_ip>

We recommend to use mirror command which works similar to rsync for larger transfers. Use parameter -c to be able to resume, -R means upload (equivalent to put), --no-perms assures that kista is able to set correct permissions for downloaders instead.

bash
lftp -e "mirror --no-perms -cR <upload_directory> /upload; bye" sftp://<username>-upload:@<kista_hostname_or_ip>