• 2
Votes
name
name Punditsdkoslkdosdkoskdo

How to scp a folder from remote to local shell?

I am not sure whether it is possible to scp a folder from remote to local, but still I am left with no other options. I use ssh to log into my server and from there I would like to copy the folder <foo to home/user/Desktop (my local). Is there any command so that I can do this?

scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/

From man scp

-r Recursively copy entire directories
  • 1
Reply Report