https://www.techrepublic.com/article/how-to-use-secure-copy-with-ssh-key-authentication/
# copy local file to server
scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME
# copy file from server
scp -i ~/.ssh/id_rsa.pub USER@SERVER:/home/USER/FILENAME /home/USER/FILENAME