scp command to 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 copy file command line
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2
scp -r [email protected]:/path/to/foo /home/user/Desktop/
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2