Putting this here because I’m constantly forgetting it.
Originally from here: http://www.hypexr.org/linux_scp_help.php
Copy the file “foobar.txt” from a remote host to the local host:
$ scp firstname.lastname@example.org:foobar.txt /some/local/directory
Copy the file “foobar.txt” from the local host to a remote host:
$ scp foobar.txt email@example.com:/some/remote/directory