]> andersk Git - openssh.git/blame - scp.1
Add FALLTHROUGH comment
[openssh.git] / scp.1
CommitLineData
bf740959 1.\" -*- nroff -*-
2.\"
3.\" scp.1
4.\"
5.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
6.\"
7.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8.\" All rights reserved
9.\"
10.\" Created: Sun May 7 00:14:37 1995 ylo
11.\"
be193d89 12.\" $OpenBSD: scp.1,v 1.28 2003/06/10 09:12:11 jmc Exp $
bf740959 13.\"
14.Dd September 25, 1999
15.Dt SCP 1
16.Os
17.Sh NAME
18.Nm scp
19.Nd secure copy (remote file copy program)
20.Sh SYNOPSIS
21.Nm scp
a4e5acef 22.Bk -words
e6b15f23 23.Op Fl pqrvBC1246
f1278af7 24.Op Fl F Ar ssh_config
b5e300c2 25.Op Fl S Ar program
bf740959 26.Op Fl P Ar port
27.Op Fl c Ar cipher
28.Op Fl i Ar identity_file
bd9f564f 29.Op Fl l Ar limit
38539909 30.Op Fl o Ar ssh_option
bf740959 31.Sm off
32.Oo
33.Op Ar user@
34.Ar host1 No :
35.Oc Ns Ar file1
36.Sm on
37.Op Ar ...
38.Sm off
39.Oo
40.Op Ar user@
41.Ar host2 No :
42.Oc Ar file2
43.Sm on
a4e5acef 44.Ek
f54651ce 45.Sh DESCRIPTION
bf740959 46.Nm
4fe2af09 47copies files between hosts on a network.
48It uses
bf740959 49.Xr ssh 1
50for data transfer, and uses the same authentication and provides the
51same security as
52.Xr ssh 1 .
53Unlike
54.Xr rcp 1 ,
55.Nm
56will ask for passwords or passphrases if they are needed for
57authentication.
58.Pp
59Any file name may contain a host and user specification to indicate
4fe2af09 60that the file is to be copied to/from that host.
61Copies between two remote hosts are permitted.
bf740959 62.Pp
63The options are as follows:
64.Bl -tag -width Ds
65.It Fl c Ar cipher
4fe2af09 66Selects the cipher to use for encrypting the data transfer.
67This option is directly passed to
bf740959 68.Xr ssh 1 .
69.It Fl i Ar identity_file
70Selects the file from which the identity (private key) for RSA
4fe2af09 71authentication is read.
72This option is directly passed to
bf740959 73.Xr ssh 1 .
bd9f564f 74.It Fl l Ar limit
75Limits the used bandwidth, specified in Kbit/s.
bf740959 76.It Fl p
77Preserves modification times, access times, and modes from the
78original file.
79.It Fl r
80Recursively copy entire directories.
81.It Fl v
4fe2af09 82Verbose mode.
83Causes
bf740959 84.Nm
f54651ce 85and
bf740959 86.Xr ssh 1
4fe2af09 87to print debugging messages about their progress.
88This is helpful in
bf740959 89debugging connection, authentication, and configuration problems.
90.It Fl B
91Selects batch mode (prevents asking for passwords or passphrases).
92.It Fl q
93Disables the progress meter.
94.It Fl C
4fe2af09 95Compression enable.
96Passes the
bf740959 97.Fl C
98flag to
99.Xr ssh 1
100to enable compression.
f1278af7 101.It Fl F Ar ssh_config
102Specifies an alternative
103per-user configuration file for
104.Nm ssh .
105This option is directly passed to
106.Xr ssh 1 .
bf740959 107.It Fl P Ar port
4fe2af09 108Specifies the port to connect to on the remote host.
109Note that this option is written with a capital
bf740959 110.Sq P ,
111because
112.Fl p
113is already reserved for preserving the times and modes of the file in
114.Xr rcp 1 .
b5e300c2 115.It Fl S Ar program
116Name of
117.Ar program
94ec8c6b 118to use for the encrypted connection.
119The program must understand
2e73a022 120.Xr ssh 1
121options.
38539909 122.It Fl o Ar ssh_option
123Can be used to pass options to
124.Nm ssh
c21a7c4a 125in the format used in
126.Xr ssh_config 5 .
127This is useful for specifying options
38539909 128for which there is no separate
129.Nm scp
00019895 130command-line flag.
e6b15f23 131.It Fl 1
132Forces
133.Nm
134to use protocol 1.
135.It Fl 2
136Forces
137.Nm
138to use protocol 2.
48e671d5 139.It Fl 4
140Forces
141.Nm
142to use IPv4 addresses only.
143.It Fl 6
144Forces
145.Nm
146to use IPv6 addresses only.
089fbbd2 147.El
16210ef7 148.Sh DIAGNOSTICS
149.Nm
150exits with 0 on success or >0 if an error occurred.
bf740959 151.Sh SEE ALSO
152.Xr rcp 1 ,
61e96248 153.Xr sftp 1 ,
bf740959 154.Xr ssh 1 ,
155.Xr ssh-add 1 ,
156.Xr ssh-agent 1 ,
157.Xr ssh-keygen 1 ,
e4e83d70 158.Xr ssh_config 5 ,
bf740959 159.Xr sshd 8
be193d89 160.Sh HISTORY
161.Nm
162is based on the
163.Xr rcp 1
164program in BSD source code from the Regents of the University of
165California.
166.Sh AUTHORS
167.An Timo Rinne Aq tri@iki.fi
168and
169.An Tatu Ylonen Aq ylo@cs.hut.fi
This page took 0.266728 seconds and 5 git commands to generate.