Handy Link For SCP Commands

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 your_username@remotehost.edu:foobar.txt /some/local/directory

Copy the file “foobar.txt” from the local host to a remote host:

$ scp foobar.txt your_username@remotehost.edu:/some/remote/directory

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s