transfer file to local code example
Example 1: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 2: copy files from local to host ssh
$ scp * remoteuser@remoteserver:/remote/folder/
scp -r [email protected]:/path/to/foo /home/user/Desktop/
$ scp * remoteuser@remoteserver:/remote/folder/