Penguin
Annotated edit history of rcp(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 ----
2 __NAME__
3
4
5 scp - secure copy (remote file copy program)
6 __SYNOPSIS__
7
8
9 scp [[-pqrvBC1246] [[-F ssh_config] [[-S program] [[-P port] [[-c
10 cipher] [[-i identity_file] [[-o ssh_option] [[
11 [[user@]
12 host1:]file1 [[...] [[ [[user@]
13 host2:]file2
14 __DESCRIPTION__
15
16
17 scp copies files between hosts on a network. It uses
18 ssh(1) for data transfer, and uses the same
19 authentication and pro- vides the same security as
20 ssh(1). Unlike rcp(1), scp will ask for
21 passwords or passphrases if they are needed for
22 authentication.
23
24
25 Any file name may contain a host and user specification to indicate that the file is to be copied to/from that host. Copies between two remote hosts are permitted.
26
27
28 The options are as follows:
29 -c cipher
30
31
32 Selects the cipher to use for encrypting the datatransfer. This option is directly passed to ssh(1).
33
34
35 -i identity_file
36 Selects the file from which the identity (private key) for
37 RSA authentication is read. This option is directly passed
38 to ssh(1).
39
40
41 -p
42 Preserves modification times, access times, and modes from
43 the original file.
44
45
46 -r
47 Recursively copy entire directories.
48
49
50 -v
51 Verbose mode. Causes scp and ssh(1) to print debug-
52 ging messages about their progress. This is helpful in
53 debugging connection, authentication, and configu- ration
54 problems.
55
56
57 -B
58 Selects batch mode (prevents asking for passwords or
59 passphrases).
60
61
62 -q
63 Disables the progress meter.
64
65
66 -C
67 Compression enable. Passes the -C flag to ssh(1) to
68 enable compression.
69
70
71 -F ssh_config
72 Specifies an alternative per-user configuration file for
73 ssh. This option is directly passed to
74 ssh(1).
75
76
77 -P port
78 Specifies the port to connect to on the remote host. Note
79 that this option is written with a capital P, because -p is
80 already reserved for preserving the times and modes of the
81 file in rcp(1).
82
83
84 -S program
85 Name of program to use for the encrypted connection. The
86 program must understand ssh(1)
87 options.
88
89
90 -o ssh_option
91 Can be used to pass options to ssh in the format used in the
92 ssh(1) configuration file. This is useful for
93 specifying options for which there is no separate scp
94 command-line flag. For example, forcing the use of protocol
95 version 1 is specified using scp -oProtocol=1.
96
97
98 -1
99 Forces scp to try protocol version 1 only.
100
101
102 -2
103 Forces scp to try protocol version 2 only.
104
105
106 -4
107 Forces scp to use IPv4 addresses only.
108
109
110 -6
111 Forces scp to use IPv6 addresses only.
112
113
114 __AUTHORS__
115
116
117 Timo Rinne
118 __HISTORY__
119
120
121 scp is based on the rcp(1) program in BSD source
122 code from the Regents of the University of
123 California.
124 __SEE ALSO__
125
126
127 rcp(1), sftp(1), ssh(1),
128 ssh-add(1), ssh-agent(1),
129 ssh-keygen(1), sshd(8)
130
131
132 BSD September 25, 1999 1
133 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.