Download file with SCP linux / Terminal

August 01, 2012

Very simple really, using ssh connection and grabbing a single file to the current directory

scp .

To desktop

scp ~/Desktop/

Syncing a whole folder and it's permissions

-R is recursive
-p is keeping intact the permissions, structures, creation times etc.

scp -pR ~/Desktop/

About me

Hello! I'm David Heward, how are you going? I'm a Senior Devops/Build Engineer, specialising in AWS & Cloud Automation. Based in London. Strong 10+ year background in Software development. Have a read of my blog. Have a look at some of my working projects. Contact me at @davehewy or on Linkedin.