scp file ssh code example
Example 1: scp with ssh key
scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME
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/