diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-17 01:19:29 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-17 01:19:29 +0000 |
commit | 9221adce6959801664fd4a340c19e6b69107ad0b (patch) | |
tree | e8b7b5706043a4eb66e0e41aad2a7986cbedeb0f /scp.0 | |
parent | ade1cee573c0897cd08987dc14e23a555898cd12 (diff) | |
parent | 22f9b945efa61bba12a4778b889df07cf851838a (diff) |
Import OpenSSH 3.7.1p1.
Diffstat (limited to 'scp.0')
-rw-r--r-- | scp.0 | 94 |
1 files changed, 94 insertions, 0 deletions
@@ -0,0 +1,94 @@ | |||
1 | SCP(1) OpenBSD Reference Manual SCP(1) | ||
2 | |||
3 | NAME | ||
4 | scp - secure copy (remote file copy program) | ||
5 | |||
6 | SYNOPSIS | ||
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 | |||
11 | DESCRIPTION | ||
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 passphras- | ||
45 | es). | ||
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 `P', 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 | |||
79 | DIAGNOSTICS | ||
80 | scp exits with 0 on success or >0 if an error occurred. | ||
81 | |||
82 | SEE ALSO | ||
83 | rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
84 | ssh_config(5), sshd(8) | ||
85 | |||
86 | HISTORY | ||
87 | scp is based on the rcp(1) program in BSD source code from the Regents of | ||
88 | the University of California. | ||
89 | |||
90 | AUTHORS | ||
91 | Timo Rinne <tri@iki.fi> and | ||
92 | Tatu Ylonen <ylo@cs.hut.fi> | ||
93 | |||
94 | OpenBSD 3.4 September 25, 1999 2 | ||