This question already has an answer here:

I connect to my remote server using SSH, and I don't enter a password during login as I have setup a SSH key already.

How can I copy a file from my local laptop to my server?

marked as duplicate by Gilles ssh Sep 5 '16 at 22:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Easy. If you can SSH, you should be able to use scp or rsync:

scp /path/to/source <uname>@<server>:/path/to/dest

if you have to use a non-standard port, use the -P option. See man scp.

Rsync is quite nice if you're looking for syncing multiple files with extensive options. I'll let you research that on your own though ;)

You can also see this very similar question for more information.

Not the answer you're looking for? Browse other questions tagged or ask your own question.