Secure File Copy or “scp” is one of those handy tool’s I use from time to time when ssh’d into another server or computer. It’s also one of those I don’t use enough to remember and always have to look up. So, I figured I might as well put it out there in a location I know I can remember (besides Google).
Ok, so on my “terminal” window (I’m on a mac, but pretty sure it’s the same for any other *nix machine, with maybe just a few variances in syntax), I type the following:
scp username@remote.server.net:archives/somefile_012710.tar.bz2 ~/Desktop/
Also, I’ve never tried it yet, but supposedly, if I ssh into the remote server with the -A flag (??? correct me if I’m wrong, please), it will copy my private secure key on my machine into my session. This would be useful, so that if i want to skip my local machine & copy a file directly to a second remote server, it would let me.
