source: trunk/third/ssh/scp.1 @ 12646

Revision 12646, 4.4 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12645, which included commits to RCS files with non-trunk default branches.
Line 
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: scp.1,v 1.1.1.2 1999-03-08 17:42:59 danw Exp $
13.\" $Log: not supported by cvs2svn $
14.\" Revision 1.6  1998/07/08 00:42:13  kivinen
15.\"     Changed to do similar commercial #ifdef processing than other
16.\"     files. Added -a, -A, -Q, and -L. Added comment about
17.\"     environment variables.
18.\"
19.\" Revision 1.5  1998/06/11 00:10:08  kivinen
20.\"     Added -q option.
21.\"
22.\" Revision 1.4  1997/04/27  21:48:37  kivinen
23.\"     Added F-SECURE stuff.
24.\"
25.\" Revision 1.3  1997/04/23 00:03:28  kivinen
26.\"     Documented -S flag and -o flags.
27.\"
28.\" Revision 1.2  1997/03/25 05:41:20  kivinen
29.\"     Fixed typo. Changed ylo's email to @ssh.fi.
30.\"
31.\" Revision 1.1.1.1  1996/02/18 21:38:13  ylo
32.\"     Imported ssh-1.2.13.
33.\"
34.\" Revision 1.5  1995/08/29  22:30:46  ylo
35.\"     Improved manual pages from Andrew Macpherson.
36.\"
37.\" Revision 1.4  1995/08/18  22:55:14  ylo
38.\"     Added "-P port" option.
39.\"
40.\" Revision 1.3  1995/07/13  01:37:06  ylo
41.\"     Removed "Last modified" header.
42.\"     Added cvs log.
43.\"
44.\" $Endlog$
45.\"
46.\"
47.\"
48.\"
49.\" #ifndef F_SECURE_COMMERCIAL
50.TH SCP 1 "November 8, 1995" "SSH" "SSH"
51.\" #endif F_SECURE_COMMERCIAL
52
53.SH NAME
54scp \- secure copy (remote file copy program)
55
56.SH SYNOPSIS
57.LP
58.B scp
59[\c
60.B \-aAqQprvBCL\c
61]
62[\c
63.BI \-S "\ path-to-ssh\c
64]
65[\c
66.BI \-o "\ ssh-options\c
67]
68[\c
69.BI \-P "\ port\c
70]
71[\c
72.BI \-c "\ cipher\c
73]
74[\c
75.BI \-i "\ identity\c
76]
77.if n .ti +5
78[[\c
79.B user@\c
80]\c
81.B host1:\c
82]\c
83.B filename1\c
84\&.\|.\|.
85[[\c
86.B user@\c
87]\c
88.B host2:\c
89]\c
90.B filename2
91
92.SH DESCRIPTION
93.LP
94.B Scp
95copies files between hosts on a network.  It uses
96.B ssh
97for data transfer, and uses the same authentication and provides the
98same security as
99.B ssh.
100Unlike
101.BR rcp ",
102.B scp
103will ask for passwords or passphrases if they are needed for
104authentication.
105.LP
106Any file name may contain a host and user specification to indicate
107that the file is to be copied to/from that host.  Copies between two
108remote hosts are permitted.
109
110.SH OPTIONS
111
112.TP 0.6i
113.B \-a
114Turn on statistics display for each file.
115.TP
116.B \-A
117Turn off statistics display for each file.
118.TP
119.BI \-c "\ cipher
120Selects the cipher to use for encrypting the data transfer.  This
121option is directly passed to
122.B ssh.
123.TP
124.BI \-i "\ identity_file
125Selects the file from which the identity (private key) for RSA
126authentication is read.  This option is directly passed to
127.B ssh.
128.TP
129.B \-L
130Use non privileged port. With this you cannot use
131rhosts  or rsarhosts authentications, but it can be
132used to bypass some firewalls that dont allow privileged
133source ports to pass. Same as saying "-o UsePriviledgePort=no"
134or -P to ssh; -L is used due to exhaustion of suitable letters.
135.TP
136.BI \-o "\ ssh-options
137Ssh options passed to ssh.
138.TP
139.B \-p
140Preserves modification times, access times, and modes from the
141original file.
142.TP
143.B \-q
144Turn off statistics display.
145.TP
146.B \-Q
147Turn on statistics display.
148.TP
149.B \-r
150Recursively copy entire directories.
151.TP
152.B \-v
153Verbose mode.  Causes
154.B scp
155and
156.B ssh
157to print debugging messages about their progress.  This is helpful in
158debugging connection, authentication, and configuration problems.
159.TP
160.B \-B
161Selects batch mode (prevents asking for passwords or passphrases).
162.TP
163.B \-C
164Compression enable.  Passes the -C flag to
165.B ssh
166to enable compression.
167.TP
168.BI \-P "\ port
169Specifies the port to connect to on the remote host.  Note that this
170option is written with a capital P, because \-p is already reserved for
171preserving the times and modes of the file in rcp.
172.TP
173.BI \-S "\ path-to-ssh
174Specifies the path to ssh program.
175
176.SH ENVIRONMENT VARIABLES
177.LP
178You can turn scp statistics on or off by setting
179.B SSH_SCP_STATS
180or
181.B SSH_NO_SCP_STATS
182environment variables. To turn on or off scp statistics for each file,
183use
184.B SSH_ALL_SCP_STATS
185or
186.B SSH_NO_ALL_SCP_STATS
187environment variables. The default value of the statistics can be set
188when the ssh is configured. Next the scp checks those environment
189variables and after that command line options.
190
191.SH AUTHORS
192.LP
193Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@ssh.fi>
194
195.SH DERIVATION
196.LP
197.B Scp
198is based on the
199.B rcp
200program in BSD source code from the Regents of the University of
201California.
202
203.SH SEE ALSO
204.LP
205.BR ssh (1),
206.BR sshd (8),
207.BR ssh-keygen (1),
208.BR ssh-agent (1),
209.BR ssh-add (1),
210.BR rcp (1)
Note: See TracBrowser for help on using the repository browser.