scp how to copy files code example
Example 1: 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 2: scp copy
scp /users/Edward/desktop [email protected]:/writing/article