I have gotten SSH access into an EC2 instance of Ubuntu.

I want to zip an entire folder, and download it to my local machine.

The folder is large - 2GB+.

How do I do that?

  • What's with the downvote?
    – marc.gayle
    Jan 7, 2015 at 10:38
  • 2
    Mouse over the down arrow; the popup says "This question does not show any research effort; it is unclear or not useful". Downvotes without comment may be presumed to be for at least one of those reasons.
    – MadHatter
    Jan 7, 2015 at 11:42

1 Answer 1


The are several ways to do what you want, one of them, assuming your local machine is a Windows one, would be:

  1. Acces via putty onto the ubuntu machine
  2. use tar to archive and compress the directory, for example using bzip2

    tar cjvf /path/to/target/archive.tar.bz2 /path/to/directory/to/compress
  3. use psftp, access to the ubuntu machine and download the tar file

Read the tar(1) manual page for more details.


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