scp to copy file to remote server code example
Example 1: scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: using scp
scp [email protected]:/remote/file.txt /local/directory
scp ./file.txt remote_username@remote_ip:/remote/directory
scp [email protected]:/remote/file.txt /local/directory