• entries
  • comments
  • views

HOWTO use scp

Sign in to follow this  
Followers 0


   44 members have voted

  1. 1. where do ya fit in?

    • White hat
    • Black Hat
    • Gray Hat
    • I don't wear any fukking hats.

Please sign in or register to vote in this poll.

WHATIS:scp is a Secure CoPy, akin to ssh. A convenient but encrypted way to move files from machine to machine on your network.A REALLY GOOD HOWTO:Linux Tutorials Blog...or you can read my very brief but-it-does-the-trick HOWTO:(I do recommend you check out the HOWTO on Linux Tutorial Blog at some point for all the cool tricks you can do with scp)The syntax for the scp command is as follows: scp [options] [[user@]host1:]filename1 ... [[user@]host2:]filename2 For example, if user klaatu is on a computer called fedora.laptop, and wants to copy a file called file.txt to slackware.com, he would enter the following: scp file.txt klaatu@slackware.comif he wanted to place file.txt specifically into a directory called destination/ then he would do this:scp file.txt klaatu@slackware.com:destinationor to be extra safe, you could give the complete path, like so:scp file.txt klaatu@slackware.com:/home/klaatu/DocumentsLikewise, if he wanted to copy the entire contents of the destination/ directory on slackware.com back to his fedora.laptop (so that's FROM a remote machine TO the machine you're sitting in front of), he would enter:scp -r klaatu@slackware.com:/home/klaatu/directory destinationSimilarly, if he is working on an entirely different computer, but wanted to copy a file called file.txt from his home directory on fedora.laptop to a directory called desitination in his account on slackware.com, he would enter: scp klaatu@fedora.laptop:file.txt klaatu@slackware.com:destinationWhen using wildcards (e.g., * and ? ) to copy multiple files from a remote system, be sure to enclose the filenames in quotes...because the shell expands unquoted wildcards.

Sign in to follow this  
Followers 0


There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now