how to scp a directory code example
Example 1: scp all files in directory
scp -r myfoldername [email protected]:/home/myfoldername
Example 2: scp folder
scp -r [email protected]:/path/to/foo /home/user/Desktop/
scp -r myfoldername [email protected]:/home/myfoldername
scp -r [email protected]:/path/to/foo /home/user/Desktop/