Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I download a specified directory and all it's files from an FTP server (requiring username+password)?

share|improve this question
up vote 5 down vote accepted

My personal preference is filezilla.

You can install it from the repositories by typing sudo apt-get install filezilla.

It's quite stable and with plenty of features.

enter image description here

Alternatively, if you want to download by using a shell FTP client (no GUI), you could try to use wget or ncftp.

Some examples:

ncftpget –R –v –u "username" <ftp_site> <local_dir> <remote_dir>, (where "R" = recursive, "v" = verbose)

wget -r ftp://username:password@<ftp_site>/

wget provides many options, i've used it many times myself and i think that you should really try it (read it's 'man page', it's worth it)

share|improve this answer
What's the benefit of using Filezilla instead of Nautilus? – Jo-Erlend Schinstad Aug 23 '11 at 4:48

Open Nautilus, select File > Connect to server.. Select FTP with login. When you're logged in, right click the folder you want to copy and paste it somewhere on your local system.

No need to install stuff. You have everything you need. :)

share|improve this answer

A few command line solutions from this thread on SO:

wget -l 100 --user=<user> --password=<password> ftp://server/which/folder

The -l 100 is for setting depth to 100, as -r sets it to 5.


wget -r

Might not always work, as per SO, so try -m instead.

Or use ncftp as below:

ncftp -u <user> -p <pass> <server>
ncftp> mget directory

Alternatively use sftp:

scp -r user@server:/which/folder /destination/folder/

This one is highly recommended over plain FTP.

share|improve this answer

Any FTP client is able to download directories recursively and also authenticate with a username and password. Just start Ubuntu Software Center, search for "ftp" and choose one of the options.

Filezilla looks like a good candidate to install and see if it works for you (though I never used it).

Or do you mean you want to download files in some unusual way (in a terminal, from a shell script, etc.)?

share|improve this answer
Yes preferably from terminal (I'm hardcore). – amiawizard Aug 23 '11 at 3:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.