-->
Skip to main contentPackage: | |
---|---|
Description: | |
License: | Unknown |
This section lists the available versions of the package on the different clusters.
Sorry, this is still under construction.
Lftp operates rather similarly to the old command line ftp utility. You should do a module load lftp
first, and
then connect to a remote site using lftp -u REMOTE_USERNAME REMOTE_SITE
. You will be prompted for a password if
needed, and then you will enter the interactive lftp prompt. At this point you can enter any of the many commands supported.
The help command shows a quick overview of all the commands, we will discuss a few of the most commonly used ones below: (in
the following, local site means the system on which you invoked the lftp command, and remote site
is the site you specified with with REMOTE_SITE argument to the lftp command):
help CMD
for some more
information on a specific command CMDThe following example shows some of the commands for accessing Box:
login-2:~> module load lftp
login-2:~> lftp -u USERNAME@umd.edu ftp.box.com
Password: Enter your Box external application password here
lftp USERNAME@umd.edu@ftp.box.com:~> help
! (commands)
alias [ []] attach [PID]
bookmark [SUBCMD] cache [SUBCMD]
cat [-b] cd
chmod [OPTS] mode file... close [-a]
[re]cls [opts] [path/][pattern] debug [OPTS] [|off]
du [options] edit [OPTS]
exit [|bg] get [OPTS] [-o ]
glob [OPTS] help []
history -w file|-r file|-c|-l [cnt] jobs [-v] []
kill all| lcd
lftp [OPTS] ln [-s]
ls [] mget [OPTS]
mirror [OPTS] [remote [local]] mkdir [OPTS]
module name [args] more
mput [OPTS] mrm
mv mmv [OPTS]
[re]nlist [] open [OPTS]
pget [OPTS] [-o ] put [OPTS] [-o ]
pwd [-p] queue [OPTS] []
quote repeat [OPTS] [delay] [command]
rm [-r] [-f] rmdir [-f]
scache [] set [OPT] [ []]
site source
lftp USERNAME@umd.edu@ftp.box.com:~> ls
drwx------ 1 owner group 0 Apr 4 12:24 testDirectory
-rw------- 1 owner group 24 Apr 4 13:26 test.file
-rw------- 1 owner group 24 Apr 4 13:51 test.file2
-rw------- 1 owner group 23 Apr 4 13:51 test.file3
lftp USERNAME@umd.edu@ftp.box.com:~> mget test.file*
71 bytes transferred in 1 second (50 B/s)
Total 3 files transferred
lftp USERNAME@umd.edu@ftp.box.com:~> mput newdata.2019-03-*.csv
12 bytes transferred in 2 seconds (5 B/s)
Total 2 files transferred
lftp USERNAME@umd.edu@ftp.box.com:~> quit
login-2:~>
One of the protocols supported by UMD Box is ftps, making lftp a good choice for connecting to box. We discuss a few aspects of using lftp with Box here. See the UMD Box service catalog entry for more information on the Box service, including restrictions on what data can be stored.
When connecting to UMD Box over the ftps protocol, the standard campus directory name/password single-sign-on cannot be used, so you will need to set up in Box a password for external applications. To do this:
|
Do not re-use your main UMD directory single-sign-on or any other password for your UMD Box external application password.
Re-use of passwords is a security risk, since if you reuse passwords and hackers compromise one site they can then leverage that
to compromise additional sites.
|
After your external application Box password is set up, you can then access Box with a command like
lftp -u USERNAME@umd.edu ftp.box.com
.