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 pthree.org:/home
To copy a remote file to my local machine:
scp pthree.org:/home/remote.file /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