summaryrefslogtreecommitdiff
path: root/scp.0
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-17 00:32:19 +0000
committerColin Watson <cjwatson@debian.org>2003-09-17 00:32:19 +0000
commit22f9b945efa61bba12a4778b889df07cf851838a (patch)
tree77a3f749ea589c590db930cff12d804a4d7893b5 /scp.0
parent9d1471514608023cda6456f5a2e875cc5e4b9e77 (diff)
parent854156dd39acbde9b4a47ec0fc54a042ea7358e0 (diff)
Import OpenSSH 3.7p1.
Diffstat (limited to 'scp.0')
-rw-r--r--scp.094
1 files changed, 94 insertions, 0 deletions
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..2ebff48d0
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,94 @@
1SCP(1) BSD General Commands Manual SCP(1)
2
3NAME
4 scp - secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-pqrvBC1246] [-F ssh_config] [-S program] [-P port] [-c cipher]
8 [-i identity_file] [-l limit] [-o ssh_option] [[user@]host1:]file1
9 [...] [[user@]host2:]file2
10
11DESCRIPTION
12 scp copies files between hosts on a network. It uses ssh(1) for data
13 transfer, and uses the same authentication and provides the same security
14 as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed for authentication.
16
17 Any file name may contain a host and user specification to indicate that
18 the file is to be copied to/from that host. Copies between two remote
19 hosts are permitted.
20
21 The options are as follows:
22
23 -c cipher
24 Selects the cipher to use for encrypting the data transfer. This
25 option is directly passed to ssh(1).
26
27 -i identity_file
28 Selects the file from which the identity (private key) for RSA
29 authentication is read. This option is directly passed to
30 ssh(1).
31
32 -l limit
33 Limits the used bandwidth, specified in Kbit/s.
34
35 -p Preserves modification times, access times, and modes from the
36 original file.
37
38 -r Recursively copy entire directories.
39
40 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
41 about their progress. This is helpful in debugging connection,
42 authentication, and configuration problems.
43
44 -B Selects batch mode (prevents asking for passwords or
45 passphrases).
46
47 -q Disables the progress meter.
48
49 -C Compression enable. Passes the -C flag to ssh(1) to enable com-
50 pression.
51
52 -F ssh_config
53 Specifies an alternative per-user configuration file for ssh.
54 This option is directly passed to ssh(1).
55
56 -P port
57 Specifies the port to connect to on the remote host. Note that
58 this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because -p is already
59 reserved for preserving the times and modes of the file in
60 rcp(1).
61
62 -S program
63 Name of program to use for the encrypted connection. The program
64 must understand ssh(1) options.
65
66 -o ssh_option
67 Can be used to pass options to ssh in the format used in
68 ssh_config(5). This is useful for specifying options for which
69 there is no separate scp command-line flag.
70
71 -1 Forces scp to use protocol 1.
72
73 -2 Forces scp to use protocol 2.
74
75 -4 Forces scp to use IPv4 addresses only.
76
77 -6 Forces scp to use IPv6 addresses only.
78
79DIAGNOSTICS
80 scp exits with 0 on success or >0 if an error occurred.
81
82SEE ALSO
83 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
84 ssh_config(5), sshd(8)
85
86HISTORY
87 scp is based on the rcp(1) program in BSD source code from the Regents of
88 the University of California.
89
90AUTHORS
91 Timo Rinne M-bM-^LM-)tri@iki.fiM-bM-^LM-* and
92 Tatu Ylonen M-bM-^LM-)ylo@cs.hut.fiM-bM-^LM-*
93
94BSD September 25, 1999 BSD