xref: /freebsd/crypto/openssh/scp.1 (revision b66f2d16a0435b7e7f3edde6101797004ae8d3b9)
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.\"
12b66f2d16SKris Kennaway.\" $Id: scp.1,v 1.10 2000/09/01 15:25:13 deraadt 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
22511b41d2SMark Murray.Op Fl pqrvC46
23b66f2d16SKris Kennaway.Op Fl S Ar program
24511b41d2SMark Murray.Op Fl P Ar port
25511b41d2SMark Murray.Op Fl c Ar cipher
26511b41d2SMark Murray.Op Fl i Ar identity_file
27511b41d2SMark Murray.Sm off
28511b41d2SMark Murray.Oo
29511b41d2SMark Murray.Op Ar user@
30511b41d2SMark Murray.Ar host1 No :
31511b41d2SMark Murray.Oc Ns Ar file1
32511b41d2SMark Murray.Sm on
33511b41d2SMark Murray.Op Ar ...
34511b41d2SMark Murray.Sm off
35511b41d2SMark Murray.Oo
36511b41d2SMark Murray.Op Ar user@
37511b41d2SMark Murray.Ar host2 No :
38511b41d2SMark Murray.Oc Ar file2
39511b41d2SMark Murray.Sm on
40511b41d2SMark Murray.Sh DESCRIPTION
41511b41d2SMark Murray.Nm
42a8f6863aSKris Kennawaycopies files between hosts on a network.
43a8f6863aSKris KennawayIt uses
44511b41d2SMark Murray.Xr ssh 1
45511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the
46511b41d2SMark Murraysame security as
47511b41d2SMark Murray.Xr ssh 1 .
48511b41d2SMark MurrayUnlike
49511b41d2SMark Murray.Xr rcp 1 ,
50511b41d2SMark Murray.Nm
51511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for
52511b41d2SMark Murrayauthentication.
53511b41d2SMark Murray.Pp
54511b41d2SMark MurrayAny file name may contain a host and user specification to indicate
55a8f6863aSKris Kennawaythat the file is to be copied to/from that host.
56a8f6863aSKris KennawayCopies between two remote hosts are permitted.
57511b41d2SMark Murray.Pp
58511b41d2SMark MurrayThe options are as follows:
59511b41d2SMark Murray.Bl -tag -width Ds
60511b41d2SMark Murray.It Fl c Ar cipher
61a8f6863aSKris KennawaySelects the cipher to use for encrypting the data transfer.
62a8f6863aSKris KennawayThis option is directly passed to
63511b41d2SMark Murray.Xr ssh 1 .
64511b41d2SMark Murray.It Fl i Ar identity_file
65511b41d2SMark MurraySelects the file from which the identity (private key) for RSA
66a8f6863aSKris Kennawayauthentication is read.
67a8f6863aSKris KennawayThis option is directly passed to
68511b41d2SMark Murray.Xr ssh 1 .
69511b41d2SMark Murray.It Fl p
70511b41d2SMark MurrayPreserves modification times, access times, and modes from the
71511b41d2SMark Murrayoriginal file.
72511b41d2SMark Murray.It Fl r
73511b41d2SMark MurrayRecursively copy entire directories.
74511b41d2SMark Murray.It Fl v
75a8f6863aSKris KennawayVerbose mode.
76a8f6863aSKris KennawayCauses
77511b41d2SMark Murray.Nm
78511b41d2SMark Murrayand
79511b41d2SMark Murray.Xr ssh 1
80a8f6863aSKris Kennawayto print debugging messages about their progress.
81a8f6863aSKris KennawayThis is helpful in
82511b41d2SMark Murraydebugging connection, authentication, and configuration problems.
83511b41d2SMark Murray.It Fl B
84511b41d2SMark MurraySelects batch mode (prevents asking for passwords or passphrases).
85511b41d2SMark Murray.It Fl q
86511b41d2SMark MurrayDisables the progress meter.
87511b41d2SMark Murray.It Fl C
88a8f6863aSKris KennawayCompression enable.
89a8f6863aSKris KennawayPasses the
90511b41d2SMark Murray.Fl C
91511b41d2SMark Murrayflag to
92511b41d2SMark Murray.Xr ssh 1
93511b41d2SMark Murrayto enable compression.
94511b41d2SMark Murray.It Fl P Ar port
95a8f6863aSKris KennawaySpecifies the port to connect to on the remote host.
96a8f6863aSKris KennawayNote that this option is written with a capital
97511b41d2SMark Murray.Sq P ,
98511b41d2SMark Murraybecause
99511b41d2SMark Murray.Fl p
100511b41d2SMark Murrayis already reserved for preserving the times and modes of the file in
101511b41d2SMark Murray.Xr rcp 1 .
102b66f2d16SKris Kennaway.It Fl S Ar program
103b66f2d16SKris KennawayName of
104b66f2d16SKris Kennaway.Ar program
105b66f2d16SKris Kennawayto use for the encrypted connection. The program must understand
106b66f2d16SKris Kennaway.Xr ssh 1
107b66f2d16SKris Kennawayoptions.
108511b41d2SMark Murray.It Fl 4
109511b41d2SMark MurrayForces
110511b41d2SMark Murray.Nm
111511b41d2SMark Murrayto use IPv4 addresses only.
112511b41d2SMark Murray.It Fl 6
113511b41d2SMark MurrayForces
114511b41d2SMark Murray.Nm
115511b41d2SMark Murrayto use IPv6 addresses only.
116b66f2d16SKris Kennaway.El
117511b41d2SMark Murray.Sh AUTHORS
118511b41d2SMark MurrayTimo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
119511b41d2SMark Murray.Sh HISTORY
120511b41d2SMark Murray.Nm
121511b41d2SMark Murrayis based on the
122511b41d2SMark Murray.Xr rcp 1
123511b41d2SMark Murrayprogram in BSD source code from the Regents of the University of
124511b41d2SMark MurrayCalifornia.
125511b41d2SMark Murray.Sh SEE ALSO
126511b41d2SMark Murray.Xr rcp 1 ,
127511b41d2SMark Murray.Xr ssh 1 ,
128511b41d2SMark Murray.Xr ssh-add 1 ,
129511b41d2SMark Murray.Xr ssh-agent 1 ,
130511b41d2SMark Murray.Xr ssh-keygen 1 ,
131511b41d2SMark Murray.Xr sshd 8
132