3

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?

0

1 Answer 1

4

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.