]> andersk Git - openssh.git/blame - scp.1
- (djm) Pick up LOGIN_PROGRAM from environment or PATH if not set by headers
[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.\"
12.\" $Id$
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
48e671d5 22.Op Fl pqrvC46
bf740959 23.Op Fl P Ar port
24.Op Fl c Ar cipher
25.Op Fl i Ar identity_file
26.Sm off
27.Oo
28.Op Ar user@
29.Ar host1 No :
30.Oc Ns Ar file1
31.Sm on
32.Op Ar ...
33.Sm off
34.Oo
35.Op Ar user@
36.Ar host2 No :
37.Oc Ar file2
38.Sm on
f54651ce 39.Sh DESCRIPTION
bf740959 40.Nm
4fe2af09 41copies files between hosts on a network.
42It uses
bf740959 43.Xr ssh 1
44for data transfer, and uses the same authentication and provides the
45same security as
46.Xr ssh 1 .
47Unlike
48.Xr rcp 1 ,
49.Nm
50will ask for passwords or passphrases if they are needed for
51authentication.
52.Pp
53Any file name may contain a host and user specification to indicate
4fe2af09 54that the file is to be copied to/from that host.
55Copies between two remote hosts are permitted.
bf740959 56.Pp
57The options are as follows:
58.Bl -tag -width Ds
59.It Fl c Ar cipher
4fe2af09 60Selects the cipher to use for encrypting the data transfer.
61This option is directly passed to
bf740959 62.Xr ssh 1 .
63.It Fl i Ar identity_file
64Selects the file from which the identity (private key) for RSA
4fe2af09 65authentication is read.
66This option is directly passed to
bf740959 67.Xr ssh 1 .
68.It Fl p
69Preserves modification times, access times, and modes from the
70original file.
2e73a022 71.It Fl S
72Name of program to use for the encrypted connection.
73The program must understand
74.Xr ssh 1
75options.
bf740959 76.It Fl r
77Recursively copy entire directories.
78.It Fl v
4fe2af09 79Verbose mode.
80Causes
bf740959 81.Nm
f54651ce 82and
bf740959 83.Xr ssh 1
4fe2af09 84to print debugging messages about their progress.
85This is helpful in
bf740959 86debugging connection, authentication, and configuration problems.
87.It Fl B
88Selects batch mode (prevents asking for passwords or passphrases).
89.It Fl q
90Disables the progress meter.
91.It Fl C
4fe2af09 92Compression enable.
93Passes the
bf740959 94.Fl C
95flag to
96.Xr ssh 1
97to enable compression.
98.It Fl P Ar port
4fe2af09 99Specifies the port to connect to on the remote host.
100Note that this option is written with a capital
bf740959 101.Sq P ,
102because
103.Fl p
104is already reserved for preserving the times and modes of the file in
105.Xr rcp 1 .
2e73a022 106.It Fl S
107Name of program to use for the encrypted connection. The program must
108understand
109.Xr ssh 1
110options.
48e671d5 111.It Fl 4
112Forces
113.Nm
114to use IPv4 addresses only.
115.It Fl 6
116Forces
117.Nm
118to use IPv6 addresses only.
089fbbd2 119.El
bf740959 120.Sh AUTHORS
121Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
122.Sh HISTORY
123.Nm
124is based on the
125.Xr rcp 1
126program in BSD source code from the Regents of the University of
127California.
128.Sh SEE ALSO
129.Xr rcp 1 ,
130.Xr ssh 1 ,
131.Xr ssh-add 1 ,
132.Xr ssh-agent 1 ,
133.Xr ssh-keygen 1 ,
134.Xr sshd 8
This page took 0.082573 seconds and 5 git commands to generate.