scp folder from local to remote code example
Example 1: scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 3: copy from remote to local
scp file.txt [email protected]:/remote/directory
Example 4: scp local to remote
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory