xref: /freebsd/crypto/openssh/scp.1 (revision 511b41d2a18c00a5f0db1a67a87ef8d831b19f2a)
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.\"
12511b41d2SMark Murray.\" $Id: scp.1,v 1.5 2000/01/04 16:57:16 markus 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
23511b41d2SMark Murray.Op Fl P Ar port
24511b41d2SMark Murray.Op Fl c Ar cipher
25511b41d2SMark Murray.Op Fl i Ar identity_file
26511b41d2SMark Murray.Sm off
27511b41d2SMark Murray.Oo
28511b41d2SMark Murray.Op Ar user@
29511b41d2SMark Murray.Ar host1 No :
30511b41d2SMark Murray.Oc Ns Ar file1
31511b41d2SMark Murray.Sm on
32511b41d2SMark Murray.Op Ar ...
33511b41d2SMark Murray.Sm off
34511b41d2SMark Murray.Oo
35511b41d2SMark Murray.Op Ar user@
36511b41d2SMark Murray.Ar host2 No :
37511b41d2SMark Murray.Oc Ar file2
38511b41d2SMark Murray.Sm on
39511b41d2SMark Murray.Sh DESCRIPTION
40511b41d2SMark Murray.Nm
41511b41d2SMark Murraycopies files between hosts on a network.  It uses
42511b41d2SMark Murray.Xr ssh 1
43511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the
44511b41d2SMark Murraysame security as
45511b41d2SMark Murray.Xr ssh 1 .
46511b41d2SMark MurrayUnlike
47511b41d2SMark Murray.Xr rcp 1 ,
48511b41d2SMark Murray.Nm
49511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for
50511b41d2SMark Murrayauthentication.
51511b41d2SMark Murray.Pp
52511b41d2SMark MurrayAny file name may contain a host and user specification to indicate
53511b41d2SMark Murraythat the file is to be copied to/from that host.  Copies between two
54511b41d2SMark Murrayremote hosts are permitted.
55511b41d2SMark Murray.Pp
56511b41d2SMark MurrayThe options are as follows:
57511b41d2SMark Murray.Bl -tag -width Ds
58511b41d2SMark Murray.It Fl c Ar cipher
59511b41d2SMark MurraySelects the cipher to use for encrypting the data transfer.  This
60511b41d2SMark Murrayoption is directly passed to
61511b41d2SMark Murray.Xr ssh 1 .
62511b41d2SMark Murray.It Fl i Ar identity_file
63511b41d2SMark MurraySelects the file from which the identity (private key) for RSA
64511b41d2SMark Murrayauthentication is read.  This option is directly passed to
65511b41d2SMark Murray.Xr ssh 1 .
66511b41d2SMark Murray.It Fl p
67511b41d2SMark MurrayPreserves modification times, access times, and modes from the
68511b41d2SMark Murrayoriginal file.
69511b41d2SMark Murray.It Fl r
70511b41d2SMark MurrayRecursively copy entire directories.
71511b41d2SMark Murray.It Fl v
72511b41d2SMark MurrayVerbose mode.  Causes
73511b41d2SMark Murray.Nm
74511b41d2SMark Murrayand
75511b41d2SMark Murray.Xr ssh 1
76511b41d2SMark Murrayto print debugging messages about their progress.  This is helpful in
77511b41d2SMark Murraydebugging connection, authentication, and configuration problems.
78511b41d2SMark Murray.It Fl B
79511b41d2SMark MurraySelects batch mode (prevents asking for passwords or passphrases).
80511b41d2SMark Murray.It Fl q
81511b41d2SMark MurrayDisables the progress meter.
82511b41d2SMark Murray.It Fl C
83511b41d2SMark MurrayCompression enable.  Passes the
84511b41d2SMark Murray.Fl C
85511b41d2SMark Murrayflag to
86511b41d2SMark Murray.Xr ssh 1
87511b41d2SMark Murrayto enable compression.
88511b41d2SMark Murray.It Fl P Ar port
89511b41d2SMark MurraySpecifies the port to connect to on the remote host.  Note that this
90511b41d2SMark Murrayoption is written with a capital
91511b41d2SMark Murray.Sq P ,
92511b41d2SMark Murraybecause
93511b41d2SMark Murray.Fl p
94511b41d2SMark Murrayis already reserved for preserving the times and modes of the file in
95511b41d2SMark Murray.Xr rcp 1 .
96511b41d2SMark Murray.It Fl 4
97511b41d2SMark MurrayForces
98511b41d2SMark Murray.Nm
99511b41d2SMark Murrayto use IPv4 addresses only.
100511b41d2SMark Murray.It Fl 6
101511b41d2SMark MurrayForces
102511b41d2SMark Murray.Nm
103511b41d2SMark Murrayto use IPv6 addresses only.
104511b41d2SMark Murray.Sh AUTHORS
105511b41d2SMark MurrayTimo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
106511b41d2SMark Murray.Sh HISTORY
107511b41d2SMark Murray.Nm
108511b41d2SMark Murrayis based on the
109511b41d2SMark Murray.Xr rcp 1
110511b41d2SMark Murrayprogram in BSD source code from the Regents of the University of
111511b41d2SMark MurrayCalifornia.
112511b41d2SMark Murray.Sh SEE ALSO
113511b41d2SMark Murray.Xr rcp 1 ,
114511b41d2SMark Murray.Xr ssh 1 ,
115511b41d2SMark Murray.Xr ssh-add 1 ,
116511b41d2SMark Murray.Xr ssh-agent 1 ,
117511b41d2SMark Murray.Xr ssh-keygen 1 ,
118511b41d2SMark Murray.Xr sshd 8
119