Mansoor Elahi Mansoor Elahi - 2 months ago 12
Linux Question

How to copy entire folder from Amazon EC2 Linux instance to local Linux machine?

I connected to Amazon's linux instance from ssh using private key. I am trying to copy entire folder from that instance to my local linux machine .

Can anyone tell me the correct

scp
command to do this?

Or do I need something more than
scp
?
Both machines are Ubuntu 10.04 LTS

Answer

Call scp from client machine with recursive option:

scp -r user@remote:src_directory dst_directory
Comments