Copying a file from a remote *nix computer to my local machine

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.

This entry was posted in Code, Development. Bookmark the permalink.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>