scp copy folder code example
Example 1: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 2: scp all files in directory
scp -r myfoldername [email protected]:/home/myfoldername
Example 3: scp copy all files ion folder
$ scp -r ~/local_dir [email protected]:/var/www/html/target_dir
Example 4: scp copy recursive
scp -r /users/Edward/desktop [email protected]:/writing/article
Example 5: scp copy
scp /users/Edward/desktop [email protected]:/writing/article