scp command to remote host code example
Example 1: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 2: scp send file to remote
dragonmnl@local $ scp -P 2222 file.ext username@domain:~/
scp -r [email protected]:/path/to/foo /home/user/Desktop/
dragonmnl@local $ scp -P 2222 file.ext username@domain:~/