scp copy file example
Example 1: scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: scp file
scp [source file] [destination]
scp file.txt user@ip:/Desktop/
For directories, add the -r tag
scp -r [source dir] [destination]
scp -r dir/ user@ip:/Desktop/
Example 3: using scp
scp [email protected]:/remote/file.txt /local/directory
Example 4: scp copy file command line
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2