scp to transfer files to remote server code example
Example 1: using scp
scp remote_username@10.10.0.2:/remote/file.txt /local/directory
Example 2: scp send file to remote
dragonmnl@local $ scp -P 2222 file.ext username@domain:~/
scp remote_username@10.10.0.2:/remote/file.txt /local/directory
dragonmnl@local $ scp -P 2222 file.ext username@domain:~/