Use SCP and Rsync with ssh key authentication to copy between server

scp -i ~/.ssh/SSHKEYFILE FILENAME USER@SERVER:/home/USER/FILENAME

rsync -avzh -P ssh -i ~/.ssh/SSHKEYFILE FILENAME USER@SERVER:/home/USER/FILENAME

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.