Image of the glider from the Game of Life by John Conway
Skip to content

Secure Copy

This is mainly for my benefit more than anything else. I always seem to forget the syntax for using scp when in my Linux box.

To copy a local file to a remote machine:

scp local.file

To copy a remote file to my local machine:

scp /home

You will obviously need to know the name of the remote file on the remote machine if you are to grab a copy of it.  Also, plenty of options exist when copying over the files, such as changing the port number and preserving the permissions.  Pulling up the manual reveals all of the switches.

{ 1 } Comments