diff options
Diffstat (limited to 'scp.0')
-rw-r--r-- | scp.0 | 81 |
1 files changed, 43 insertions, 38 deletions
@@ -1,17 +1,17 @@ | |||
1 | SCP(1) System General Commands Manual SCP(1) | 1 | SCP(1) BSD General Commands Manual SCP(1) |
2 | 2 | ||
3 | NAME | 3 | ^[[1mNAME^[[0m |
4 | scp - secure copy (remote file copy program) | 4 | ^[[1mscp ^[[22mM-bMM-^R secure copy (remote file copy program) |
5 | 5 | ||
6 | SYNOPSIS | 6 | ^[[1mSYNOPSIS^[[0m |
7 | scp [-pqrvBC46] [-F ssh_config] [-S program] [-P port] [-c cipher] | 7 | ^[[1mscp ^[[22m[^[[1mM-bMM-^RpqrvBC1246^[[22m] [^[[1mM-bMM-^RF ^[[4m^[[22mssh_config^[[24m] [^[[1mM-bMM-^RS ^[[4m^[[22mprogram^[[24m] [^[[1mM-bMM-^RP ^[[4m^[[22mport^[[24m] [^[[1mM-bMM-^Rc ^[[4m^[[22mcipher^[[24m] |
8 | [-i identity_file] [-o ssh_option] [[user@]host1:]file1 [...] | 8 | [^[[1mM-bMM-^Ri ^[[4m^[[22midentity_file^[[24m] [^[[1mM-bMM-^Rl ^[[4m^[[22mlimit^[[24m] [^[[1mM-bMM-^Ro ^[[4m^[[22mssh_option^[[24m] [[^[[4muser@^[[24m]^[[4mhost1^[[24m:]^[[4mfile1^[[0m |
9 | [[user@]host2:]file2 | 9 | [^[[4m...^[[24m] [[^[[4muser@^[[24m]^[[4mhost2^[[24m:]^[[4mfile2^[[0m |
10 | 10 | ||
11 | DESCRIPTION | 11 | ^[[1mDESCRIPTION^[[0m |
12 | scp copies files between hosts on a network. It uses ssh(1) for data | 12 | ^[[1mscp ^[[22mcopies files between hosts on a network. It uses ssh(1) for data |
13 | transfer, and uses the same authentication and provides the same security | 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 | 14 | as ssh(1). Unlike rcp(1), ^[[1mscp ^[[22mwill ask for passwords or passphrases if |
15 | they are needed for authentication. | 15 | they are needed for authentication. |
16 | 16 | ||
17 | Any file name may contain a host and user specification to indicate that | 17 | Any file name may contain a host and user specification to indicate that |
@@ -20,69 +20,74 @@ DESCRIPTION | |||
20 | 20 | ||
21 | The options are as follows: | 21 | The options are as follows: |
22 | 22 | ||
23 | -c cipher | 23 | ^[[1mM-bMM-^Rc ^[[4m^[[22mcipher^[[0m |
24 | Selects the cipher to use for encrypting the data transfer. This | 24 | Selects the cipher to use for encrypting the data transfer. This |
25 | option is directly passed to ssh(1). | 25 | option is directly passed to ssh(1). |
26 | 26 | ||
27 | -i identity_file | 27 | ^[[1mM-bMM-^Ri ^[[4m^[[22midentity_file^[[0m |
28 | Selects the file from which the identity (private key) for RSA | 28 | Selects the file from which the identity (private key) for RSA |
29 | authentication is read. This option is directly passed to | 29 | authentication is read. This option is directly passed to |
30 | ssh(1). | 30 | ssh(1). |
31 | 31 | ||
32 | -p Preserves modification times, access times, and modes from the | 32 | ^[[1mM-bMM-^Rl ^[[4m^[[22mlimit^[[0m |
33 | Limits the used bandwidth, specified in Kbit/s. | ||
34 | |||
35 | ^[[1mM-bMM-^Rp ^[[22mPreserves modification times, access times, and modes from the | ||
33 | original file. | 36 | original file. |
34 | 37 | ||
35 | -r Recursively copy entire directories. | 38 | ^[[1mM-bMM-^Rr ^[[22mRecursively copy entire directories. |
36 | 39 | ||
37 | -v Verbose mode. Causes scp and ssh(1) to print debugging messages | 40 | ^[[1mM-bMM-^Rv ^[[22mVerbose mode. Causes ^[[1mscp ^[[22mand ssh(1) to print debugging messages |
38 | about their progress. This is helpful in debugging connection, | 41 | about their progress. This is helpful in debugging connection, |
39 | authentication, and configuration problems. | 42 | authentication, and configuration problems. |
40 | 43 | ||
41 | -B Selects batch mode (prevents asking for passwords or | 44 | ^[[1mM-bMM-^RB ^[[22mSelects batch mode (prevents asking for passwords or |
42 | passphrases). | 45 | passphrases). |
43 | 46 | ||
44 | -q Disables the progress meter. | 47 | ^[[1mM-bMM-^Rq ^[[22mDisables the progress meter. |
45 | 48 | ||
46 | -C Compression enable. Passes the -C flag to ssh(1) to enable comM-- | 49 | ^[[1mM-bMM-^RC ^[[22mCompression enable. Passes the ^[[1mM-bMM-^RC ^[[22mflag to ssh(1) to enable comM-bM-^@M-^P |
47 | pression. | 50 | pression. |
48 | 51 | ||
49 | -F ssh_config | 52 | ^[[1mM-bMM-^RF ^[[4m^[[22mssh_config^[[0m |
50 | Specifies an alternative per-user configuration file for ssh. | 53 | Specifies an alternative perM-bM-^@M-^Puser configuration file for ^[[1mssh^[[22m. |
51 | This option is directly passed to ssh(1). | 54 | This option is directly passed to ssh(1). |
52 | 55 | ||
53 | -P port | 56 | ^[[1mM-bMM-^RP ^[[4m^[[22mport^[[0m |
54 | Specifies the port to connect to on the remote host. Note that | 57 | Specifies the port to connect to on the remote host. Note that |
55 | this option is written with a capital `P', because -p is already | 58 | this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because ^[[1mM-bMM-^Rp ^[[22mis already |
56 | reserved for preserving the times and modes of the file in | 59 | reserved for preserving the times and modes of the file in |
57 | rcp(1). | 60 | rcp(1). |
58 | 61 | ||
59 | -S program | 62 | ^[[1mM-bMM-^RS ^[[4m^[[22mprogram^[[0m |
60 | Name of program to use for the encrypted connection. The program | 63 | Name of ^[[4mprogram^[[24m to use for the encrypted connection. The program |
61 | must understand ssh(1) options. | 64 | must understand ssh(1) options. |
62 | 65 | ||
63 | -o ssh_option | 66 | ^[[1mM-bMM-^Ro ^[[4m^[[22mssh_option^[[0m |
64 | Can be used to pass options to ssh in the format used in | 67 | Can be used to pass options to ^[[1mssh ^[[22min the format used in |
65 | ssh_config(5). This is useful for specifying options for which | 68 | ssh_config(5). This is useful for specifying options for which |
66 | there is no separate scp command-line flag. For example, forcing | 69 | there is no separate ^[[1mscp ^[[22mcommandM-bM-^@M-^Pline flag. |
67 | the use of protocol version 1 is specified using scp | 70 | |
68 | -oProtocol=1. | 71 | ^[[1mM-bMM-^R1 ^[[22mForces ^[[1mscp ^[[22mto use protocol 1. |
72 | |||
73 | ^[[1mM-bMM-^R2 ^[[22mForces ^[[1mscp ^[[22mto use protocol 2. | ||
69 | 74 | ||
70 | -4 Forces scp to use IPv4 addresses only. | 75 | ^[[1mM-bMM-^R4 ^[[22mForces ^[[1mscp ^[[22mto use IPv4 addresses only. |
71 | 76 | ||
72 | -6 Forces scp to use IPv6 addresses only. | 77 | ^[[1mM-bMM-^R6 ^[[22mForces ^[[1mscp ^[[22mto use IPv6 addresses only. |
73 | 78 | ||
74 | DIAGNOSTICS | 79 | ^[[1mDIAGNOSTICS^[[0m |
75 | scp exits with 0 on success or >0 if an error occurred. | 80 | ^[[1mscp ^[[22mexits with 0 on success or >0 if an error occurred. |
76 | 81 | ||
77 | AUTHORS | 82 | ^[[1mAUTHORS^[[0m |
78 | Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> | 83 | Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> |
79 | 84 | ||
80 | HISTORY | 85 | ^[[1mHISTORY^[[0m |
81 | scp is based on the rcp(1) program in BSD source code from the Regents of | 86 | ^[[1mscp ^[[22mis based on the rcp(1) program in BSD source code from the Regents of |
82 | the University of California. | 87 | the University of California. |
83 | 88 | ||
84 | SEE ALSO | 89 | ^[[1mSEE ALSO^[[0m |
85 | rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | 90 | rcp(1), sftp(1), ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pagent(1), sshM-bM-^@M-^Pkeygen(1), |
86 | ssh_config(5), sshd(8) | 91 | ssh_config(5), sshd(8) |
87 | 92 | ||
88 | BSD September 25, 1999 BSD | 93 | BSD September 25, 1999 BSD |