Simply enough, a tool like your normal (unix) `cp` command, or (Windows) `copy` command that copies files between systems in a secure encrypted manner.

The basic syntax:

  • Unix: scp <path1> <path2>
  • Windows: pscp <path1> <path2>

path1: File(s) to copy

*path2: Where to put them

Note: Both arguments are of the generic form:

  <[[user@]host:]/dir/path>

Which is kind of confusing. Examples:

  file.c
  doc:~/src/project/file.c
  doc.nuron.com:~/src/project/file.c
  claw@doc.nuron.com:~/src/project/file.c
  claw@doc.nuron.com:/home/claw/src/project/file.c

Example invocations of scp:

  • Unix:
    • Send file.c to remote system: scp file.c claw@tyan-gx:~src/prokect/
    • Get file.c from remote system: scp claw@tyan-gx:~src/prokect/file.c .
    • Send everything to remote system: scp * claw@tyan-gx:~src/prokect/
    • Get everything from remote system: scp claw@tyan-gx:~src/prokect/* .
  • Windows:
    • Send file.c to remote system: pscp file.c claw@tyan-gx:~src/prokect/
    • Get file.c from remote system: pscp claw@tyan-gx:~src/prokect/file.c .
    • Send everything to remote system: pscp * claw@tyan-gx:~src/prokect/
    • Get everything from remote system: pscp claw@tyan-gx:~src/prokect/* .

-- JcLawrence - 29 Sep 2000

Topic revision: r1 - 01 Feb 2002 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback