 |
Index for Section 1 |
|
 |
Alphabetical listing for S |
|
 |
Bottom of page |
|
scp2(1)
NAME
scp2, scp - Secure Shell client remote copy application
SYNOPSIS
scp2 [-D debug_level_spec] [-d] [-p] [-n] [-u] [-v] [-h] [-c cipher] [-S
ssh2-path] [-P ssh2 port#] [-t] [-f] [-r] [-B] [-o ssh-option] [-i
filename] [[user@]host[port #]:] file ... [[user@]host[port #]:]
filename_or_directoryname
OPTIONS
-D debug_level_spec
Prints debug information to stderr. The debug_level_spec argument is a
number between 0 and 99, where 99 specifies that all debug information
should be displayed.
-d Makes sure that the destination file is a directory. If not, the scp2
command will exit with an error message.
-p Preserves file attributes and timestamps.
-n Displays operations that would have been done, without actually copying
any files.
-u Removes source files after copying. Similar to moving a file with the
mv command.
-v Displays information in verbose mode. This is equal to specifying the
-D 2 option.
-h Displays help.
-c cipher
Specifies the encryption algorithm to use. See the Ciphers keyword in
the ssh2_config(4) for more information. Multiple -c options are
allowed; a single -c option can specify only one cipher.
-S ssh2-path
Specifies the path used in connecting.
-o ssh-option
Specifies to use an ssh2 command option. See ssh2(1)
-i file
Specifies the identity file to use.
-p ssh2-port
Specifies the remote port. Ports can also be defined on a file-to-file
basis.
-t or -f
These options are reserved for scp1 compatibility mode. If they are
used with the scp2 command, it gives them as arguments to scp1 to
handle the connection.
-r Copies directories recursively. Does not follow symbolic links.
-B Invokes batch mode.
OPERANDS
filename, directoryname
Specifies a system, user, and port to indicate that the file or
directory is to be copied to or from that system. The filename and
directoryname can contain globbing patterns (wildcards). See
sshregex(5) for more information about globbing patterns.
DESCRIPTION
The scp2 command securely copies files between a Secure Shell client and
server. The scp2 command is intended as a secure replacement for the rcp
command.
When the user enters the scp2 command, the client establishes a session
with the server and must prove the user's identity to the server by using
an authentication method, which can be password authentication, public key
authentication, or host based authentication. (See the
AllowedAuthentications keyword in ssh2_config(4) for more information.)
When the user's identity has been accepted by the server, the server
executes the command. All communication will be automatically encrypted.
The session terminates when the command completes.
NOTES
The scp2 command uses ssh2 in network connections. Therefore it is not
installed as suid-root. The scp2 command requires that the sftp-server
subsystem be defined in the sshd2_config file on the server, which it is
by default. See the Subsystem keyword in sshd2_config(4) for more
information.
EXAMPLES
The following example shows how to copy files from a local system to a
remote system:
prompt>scp localfile user@remotehost:/dest/dir/for/file/
The following example shows how to copy files from a remote system to a
local system:
prompt>scp user@remotehost:/dir/for/file/remotefile /dest/dir/for/file
LEGAL NOTICES
SSH is a registered trademark of SSH Communication Security Ltd.
SEE ALSO
Commands: rcp(1), ssh2(1)
Files: ssh2_config(4), sshd2_config(4)
 |
Index for Section 1 |
|
 |
Alphabetical listing for S |
|
 |
Top of page |
|