5 .\" Author: Tatu Ylonen <ylo@cs.hut.fi>
7 .\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 .\" All rights reserved
10 .\" Created: Sun May 7 00:14:37 1995 ylo
12 .\" $OpenBSD: scp.1,v 1.23 2002/06/22 16:41:57 stevesk Exp $
14 .Dd September 25, 1999
19 .Nd secure copy (remote file copy program)
23 .Op Fl F Ar ssh_config
27 .Op Fl i Ar identity_file
28 .Op Fl o Ar ssh_option
44 copies files between hosts on a network.
47 for data transfer, and uses the same authentication and provides the
53 will ask for passwords or passphrases if they are needed for
56 Any file name may contain a host and user specification to indicate
57 that the file is to be copied to/from that host.
58 Copies between two remote hosts are permitted.
60 The options are as follows:
63 Selects the cipher to use for encrypting the data transfer.
64 This option is directly passed to
66 .It Fl i Ar identity_file
67 Selects the file from which the identity (private key) for RSA
68 authentication is read.
69 This option is directly passed to
72 Preserves modification times, access times, and modes from the
75 Recursively copy entire directories.
82 to print debugging messages about their progress.
84 debugging connection, authentication, and configuration problems.
86 Selects batch mode (prevents asking for passwords or passphrases).
88 Disables the progress meter.
95 to enable compression.
96 .It Fl F Ar ssh_config
97 Specifies an alternative
98 per-user configuration file for
100 This option is directly passed to
103 Specifies the port to connect to on the remote host.
104 Note that this option is written with a capital
108 is already reserved for preserving the times and modes of the file in
113 to use for the encrypted connection.
114 The program must understand
117 .It Fl o Ar ssh_option
118 Can be used to pass options to
120 in the format used in
122 This is useful for specifying options
123 for which there is no separate
125 command-line flag. For example, forcing the use of protocol
126 version 1 is specified using
127 .Ic scp -oProtocol=1 .
131 to use IPv4 addresses only.
135 to use IPv6 addresses only.
139 exits with 0 on success or >0 if an error occurred.
141 Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
146 program in BSD source code from the Regents of the University of