SSH Communications Security
Previous Next Up [Contents] [Index]

    About This Document>>
    Introduction to SSH Secure Shell >>
    Configuring SSH Secure Shell >>
    Authentication >>
    Log Messages >>
    Using SSH Secure Shell >>
        Using the Secure Shell Server Daemon (sshd2)>>
        Using the Secure Shell Client (ssh2)>>
        Using Secure Copy (scp2)
        Using Secure File Transfer (sftp2)
        Using Authentication Agent (ssh-agent2, ssh-add2)
    Tool Syntax>>
    Technical Specifications >>

Using Secure Copy (scp2)

Scp2 is a program for copying files securely over the network. It uses ssh2 for data transfer, and uses the same authentication and provides the same security as ssh2.

Scp2 uses a sftp2 over ssh2 for data exchange between the client and server. This is not to be confused with FTP.

The basic syntax for scp2 is like this:

scp user@source:/directory/file user@destination:/directory/file

Note: As shown in the example above, in the normal case, you do not have to type scp2. The installation process creates a symbolic link, scp, that points to the actual scp2 executable. If ssh1 was installed before ssh2 was, you will need to type scp1 to run the ssh1 client.

Scp2 can be used to copy files in either direction; that is, from the local system to the remote system or vice versa. Local paths can be specified without the user@system: prefix. Relative paths can also be used; they are interpreted relative to the user's home directory.

The scp2 command-line options are documented in detail on the scp2(1) manual page.

Previous Next Up [Contents] [Index]


[ Contact Information | Support | Feedback | SSH Home Page | SSH Products ]

Copyright © 2003 SSH Communications Security Corp.
All rights reserved.
Copyright Notice