xref: /freebsd/crypto/openssh/scp.1 (revision ee21a45f81a0d84007f4e9b4175b9eb4727a96ee)
1511b41d2SMark Murray.\"  -*- nroff -*-
2511b41d2SMark Murray.\"
3511b41d2SMark Murray.\" scp.1
4511b41d2SMark Murray.\"
5511b41d2SMark Murray.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
6511b41d2SMark Murray.\"
7511b41d2SMark Murray.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8511b41d2SMark Murray.\"                    All rights reserved
9511b41d2SMark Murray.\"
10511b41d2SMark Murray.\" Created: Sun May  7 00:14:37 1995 ylo
11511b41d2SMark Murray.\"
12ee21a45fSDag-Erling Smørgrav.\" $OpenBSD: scp.1,v 1.23 2002/06/22 16:41:57 stevesk Exp $
13511b41d2SMark Murray.\"
14511b41d2SMark Murray.Dd September 25, 1999
15511b41d2SMark Murray.Dt SCP 1
16511b41d2SMark Murray.Os
17511b41d2SMark Murray.Sh NAME
18511b41d2SMark Murray.Nm scp
19511b41d2SMark Murray.Nd secure copy (remote file copy program)
20511b41d2SMark Murray.Sh SYNOPSIS
21511b41d2SMark Murray.Nm scp
22ae1f160dSDag-Erling Smørgrav.Op Fl pqrvBC46
23ae1f160dSDag-Erling Smørgrav.Op Fl F Ar ssh_config
24b66f2d16SKris Kennaway.Op Fl S Ar program
25511b41d2SMark Murray.Op Fl P Ar port
26511b41d2SMark Murray.Op Fl c Ar cipher
27511b41d2SMark Murray.Op Fl i Ar identity_file
28ae1f160dSDag-Erling Smørgrav.Op Fl o Ar ssh_option
29511b41d2SMark Murray.Sm off
30511b41d2SMark Murray.Oo
31511b41d2SMark Murray.Op Ar user@
32511b41d2SMark Murray.Ar host1 No :
33511b41d2SMark Murray.Oc Ns Ar file1
34511b41d2SMark Murray.Sm on
35511b41d2SMark Murray.Op Ar ...
36511b41d2SMark Murray.Sm off
37511b41d2SMark Murray.Oo
38511b41d2SMark Murray.Op Ar user@
39511b41d2SMark Murray.Ar host2 No :
40511b41d2SMark Murray.Oc Ar file2
41511b41d2SMark Murray.Sm on
42511b41d2SMark Murray.Sh DESCRIPTION
43511b41d2SMark Murray.Nm
44a8f6863aSKris Kennawaycopies files between hosts on a network.
45a8f6863aSKris KennawayIt uses
46511b41d2SMark Murray.Xr ssh 1
47511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the
48511b41d2SMark Murraysame security as
49511b41d2SMark Murray.Xr ssh 1 .
50511b41d2SMark MurrayUnlike
51511b41d2SMark Murray.Xr rcp 1 ,
52511b41d2SMark Murray.Nm
53511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for
54511b41d2SMark Murrayauthentication.
55511b41d2SMark Murray.Pp
56511b41d2SMark MurrayAny file name may contain a host and user specification to indicate
57a8f6863aSKris Kennawaythat the file is to be copied to/from that host.
58a8f6863aSKris KennawayCopies between two remote hosts are permitted.
59511b41d2SMark Murray.Pp
60511b41d2SMark MurrayThe options are as follows:
61511b41d2SMark Murray.Bl -tag -width Ds
62511b41d2SMark Murray.It Fl c Ar cipher
63a8f6863aSKris KennawaySelects the cipher to use for encrypting the data transfer.
64a8f6863aSKris KennawayThis option is directly passed to
65511b41d2SMark Murray.Xr ssh 1 .
66511b41d2SMark Murray.It Fl i Ar identity_file
67511b41d2SMark MurraySelects the file from which the identity (private key) for RSA
68a8f6863aSKris Kennawayauthentication is read.
69a8f6863aSKris KennawayThis option is directly passed to
70511b41d2SMark Murray.Xr ssh 1 .
71511b41d2SMark Murray.It Fl p
72511b41d2SMark MurrayPreserves modification times, access times, and modes from the
73511b41d2SMark Murrayoriginal file.
74511b41d2SMark Murray.It Fl r
75511b41d2SMark MurrayRecursively copy entire directories.
76511b41d2SMark Murray.It Fl v
77a8f6863aSKris KennawayVerbose mode.
78a8f6863aSKris KennawayCauses
79511b41d2SMark Murray.Nm
80511b41d2SMark Murrayand
81511b41d2SMark Murray.Xr ssh 1
82a8f6863aSKris Kennawayto print debugging messages about their progress.
83a8f6863aSKris KennawayThis is helpful in
84511b41d2SMark Murraydebugging connection, authentication, and configuration problems.
85511b41d2SMark Murray.It Fl B
86511b41d2SMark MurraySelects batch mode (prevents asking for passwords or passphrases).
87511b41d2SMark Murray.It Fl q
88511b41d2SMark MurrayDisables the progress meter.
89511b41d2SMark Murray.It Fl C
90a8f6863aSKris KennawayCompression enable.
91a8f6863aSKris KennawayPasses the
92511b41d2SMark Murray.Fl C
93511b41d2SMark Murrayflag to
94511b41d2SMark Murray.Xr ssh 1
95511b41d2SMark Murrayto enable compression.
96ae1f160dSDag-Erling Smørgrav.It Fl F Ar ssh_config
97ae1f160dSDag-Erling SmørgravSpecifies an alternative
98ae1f160dSDag-Erling Smørgravper-user configuration file for
99ae1f160dSDag-Erling Smørgrav.Nm ssh .
100ae1f160dSDag-Erling SmørgravThis option is directly passed to
101ae1f160dSDag-Erling Smørgrav.Xr ssh 1 .
102511b41d2SMark Murray.It Fl P Ar port
103a8f6863aSKris KennawaySpecifies the port to connect to on the remote host.
104a8f6863aSKris KennawayNote that this option is written with a capital
105511b41d2SMark Murray.Sq P ,
106511b41d2SMark Murraybecause
107511b41d2SMark Murray.Fl p
108511b41d2SMark Murrayis already reserved for preserving the times and modes of the file in
109511b41d2SMark Murray.Xr rcp 1 .
110b66f2d16SKris Kennaway.It Fl S Ar program
111b66f2d16SKris KennawayName of
112b66f2d16SKris Kennaway.Ar program
1135b9b2fafSBrian Feldmanto use for the encrypted connection.
1145b9b2fafSBrian FeldmanThe program must understand
115b66f2d16SKris Kennaway.Xr ssh 1
116b66f2d16SKris Kennawayoptions.
117ae1f160dSDag-Erling Smørgrav.It Fl o Ar ssh_option
118ae1f160dSDag-Erling SmørgravCan be used to pass options to
119ae1f160dSDag-Erling Smørgrav.Nm ssh
120545d5ecaSDag-Erling Smørgravin the format used in
121545d5ecaSDag-Erling Smørgrav.Xr ssh_config 5 .
122545d5ecaSDag-Erling SmørgravThis is useful for specifying options
123ae1f160dSDag-Erling Smørgravfor which there is no separate
124ae1f160dSDag-Erling Smørgrav.Nm scp
125ae1f160dSDag-Erling Smørgravcommand-line flag.  For example, forcing the use of protocol
126ae1f160dSDag-Erling Smørgravversion 1 is specified using
127ae1f160dSDag-Erling Smørgrav.Ic scp -oProtocol=1 .
128511b41d2SMark Murray.It Fl 4
129511b41d2SMark MurrayForces
130511b41d2SMark Murray.Nm
131511b41d2SMark Murrayto use IPv4 addresses only.
132511b41d2SMark Murray.It Fl 6
133511b41d2SMark MurrayForces
134511b41d2SMark Murray.Nm
135511b41d2SMark Murrayto use IPv6 addresses only.
136b66f2d16SKris Kennaway.El
137ae1f160dSDag-Erling Smørgrav.Sh DIAGNOSTICS
138ae1f160dSDag-Erling Smørgrav.Nm
139ae1f160dSDag-Erling Smørgravexits with 0 on success or >0 if an error occurred.
140511b41d2SMark Murray.Sh AUTHORS
141511b41d2SMark MurrayTimo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
142511b41d2SMark Murray.Sh HISTORY
143511b41d2SMark Murray.Nm
144511b41d2SMark Murrayis based on the
145511b41d2SMark Murray.Xr rcp 1
146511b41d2SMark Murrayprogram in BSD source code from the Regents of the University of
147511b41d2SMark MurrayCalifornia.
148511b41d2SMark Murray.Sh SEE ALSO
149511b41d2SMark Murray.Xr rcp 1 ,
1501e8db6e2SBrian Feldman.Xr sftp 1 ,
151511b41d2SMark Murray.Xr ssh 1 ,
152511b41d2SMark Murray.Xr ssh-add 1 ,
153511b41d2SMark Murray.Xr ssh-agent 1 ,
154511b41d2SMark Murray.Xr ssh-keygen 1 ,
155ee21a45fSDag-Erling Smørgrav.Xr ssh_config 5 ,
156511b41d2SMark Murray.Xr sshd 8
157