Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm on ubuntu. I only have sftp access to a remote server. The remote server disabled shell, so i can't use ssh or scp command.

Is there a way for me to recursively get the entire /var/www directory onto my localhost?

share|improve this question
up vote 0 down vote accepted

According to this answer, Nautilus (the file manager in Gnome) allows you to sftp as if it were part of your filesystem. Another answer there mentions lftp which has a mirror command.

share|improve this answer
If you use lftp, the mirror command is more appropriate, because it will recursively grab everything in the directory requested. The mget command is for when you want to specify multiple individual files to download. – James Sneeringer Apr 30 '10 at 18:27
Thanks, I've corrected my answer. – Dennis Williamson Apr 30 '10 at 19:33

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.