Super User is a question and answer site for computer enthusiasts and power users. 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 am learning SSH as it seems there are no good SSH GUIs for Macs. I know how to make db dumps, cruise through the directories, etc, but the one last piece of the puzzle I need to learn is how to download folders/entire directories from the server and onto my local computer so I can then move them to another server.

Any help would be greatly appreciated.

share|improve this question

migrated from Dec 16 '10 at 20:53

This question came from our site for professional and enthusiast programmers.

scp -r user@host:/path/to/folder/ local-copy-of-folder

If you have SSH keys set up, you can tab-complete remote files/folders.

share|improve this answer
thank you very much! It works like a charm! – andi May 3 '14 at 19:42

you can scp - which will allow you to securely copy between hosts.

to learn more you can do man scp

Its located in /usr/bin on linux. SCP or secure copy command copies files and directories from one computer to another in batch. (For interactive user interface you can use SFTP as "user545035" stated. It encrypts all communication between the two machines.

$ scp my file
$ scp -r mydir
$ scp .
$ scp -r .

TO specify an alternate username on the remote system, use the username@host syntax:

$ scp myfile :

Useful options:

-p: Duplicate all file attributes (permissions, timestamps) when copying.

-r: Recursively copy a directory and its contents.

-v: Produce verbose output, useful for debugging.

SFTP (host|username@host) openssh-client located in the /usr/bin directory. The sftp program copies files interactively between two computers. (As opposed to scp, which copies files in batch.) The user interface is much like that of ftp.

$ sftp
password: ******
sftp> cd MyFiles
sftp> ls
sftp> get README
Fetching /home/solidariti/Myfiles/README to README

If you username is different from your local one, use the username@host argument:

$ sftp

Hope this gets you on your way.

share|improve this answer

I would look for an 'SFTP Client' and use that. Maybe FileZilla

share|improve this answer

It's just...

scp -r username@remote:/path/to/folder /dest/local/path
share|improve this answer

Cyberduck was my favorite SSH/FTP/DAV GUI when I used a Mac. Looks like it's been updated to include Google Docs and S3 since then, too.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .