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?


1 Answer 1


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.