[10563] | 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 | .\" |
---|
[12645] | 12 | .\" $Id: scp.1,v 1.1.1.2 1999-03-08 17:42:59 danw Exp $ |
---|
[10563] | 13 | .\" $Log: not supported by cvs2svn $ |
---|
[12645] | 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 |
---|
[10563] | 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 | .\" |
---|
[12645] | 46 | .\" |
---|
| 47 | .\" |
---|
| 48 | .\" |
---|
| 49 | .\" #ifndef F_SECURE_COMMERCIAL |
---|
| 50 | .TH SCP 1 "November 8, 1995" "SSH" "SSH" |
---|
| 51 | .\" #endif F_SECURE_COMMERCIAL |
---|
[10563] | 52 | |
---|
| 53 | .SH NAME |
---|
| 54 | scp \- secure copy (remote file copy program) |
---|
| 55 | |
---|
| 56 | .SH SYNOPSIS |
---|
| 57 | .LP |
---|
| 58 | .B scp |
---|
| 59 | [\c |
---|
[12645] | 60 | .B \-aAqQprvBCL\c |
---|
[10563] | 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 |
---|
| 95 | copies files between hosts on a network. It uses |
---|
| 96 | .B ssh |
---|
| 97 | for data transfer, and uses the same authentication and provides the |
---|
| 98 | same security as |
---|
| 99 | .B ssh. |
---|
| 100 | Unlike |
---|
| 101 | .BR rcp ", |
---|
| 102 | .B scp |
---|
| 103 | will ask for passwords or passphrases if they are needed for |
---|
| 104 | authentication. |
---|
| 105 | .LP |
---|
| 106 | Any file name may contain a host and user specification to indicate |
---|
| 107 | that the file is to be copied to/from that host. Copies between two |
---|
| 108 | remote hosts are permitted. |
---|
| 109 | |
---|
| 110 | .SH OPTIONS |
---|
| 111 | |
---|
| 112 | .TP 0.6i |
---|
[12645] | 113 | .B \-a |
---|
| 114 | Turn on statistics display for each file. |
---|
| 115 | .TP |
---|
| 116 | .B \-A |
---|
| 117 | Turn off statistics display for each file. |
---|
| 118 | .TP |
---|
[10563] | 119 | .BI \-c "\ cipher |
---|
| 120 | Selects the cipher to use for encrypting the data transfer. This |
---|
| 121 | option is directly passed to |
---|
| 122 | .B ssh. |
---|
| 123 | .TP |
---|
| 124 | .BI \-i "\ identity_file |
---|
| 125 | Selects the file from which the identity (private key) for RSA |
---|
| 126 | authentication is read. This option is directly passed to |
---|
| 127 | .B ssh. |
---|
| 128 | .TP |
---|
[12645] | 129 | .B \-L |
---|
| 130 | Use non privileged port. With this you cannot use |
---|
| 131 | rhosts or rsarhosts authentications, but it can be |
---|
| 132 | used to bypass some firewalls that dont allow privileged |
---|
| 133 | source ports to pass. Same as saying "-o UsePriviledgePort=no" |
---|
| 134 | or -P to ssh; -L is used due to exhaustion of suitable letters. |
---|
| 135 | .TP |
---|
[10563] | 136 | .BI \-o "\ ssh-options |
---|
| 137 | Ssh options passed to ssh. |
---|
| 138 | .TP |
---|
| 139 | .B \-p |
---|
| 140 | Preserves modification times, access times, and modes from the |
---|
| 141 | original file. |
---|
| 142 | .TP |
---|
[12645] | 143 | .B \-q |
---|
| 144 | Turn off statistics display. |
---|
| 145 | .TP |
---|
| 146 | .B \-Q |
---|
| 147 | Turn on statistics display. |
---|
| 148 | .TP |
---|
[10563] | 149 | .B \-r |
---|
| 150 | Recursively copy entire directories. |
---|
| 151 | .TP |
---|
| 152 | .B \-v |
---|
| 153 | Verbose mode. Causes |
---|
| 154 | .B scp |
---|
| 155 | and |
---|
| 156 | .B ssh |
---|
| 157 | to print debugging messages about their progress. This is helpful in |
---|
| 158 | debugging connection, authentication, and configuration problems. |
---|
| 159 | .TP |
---|
| 160 | .B \-B |
---|
| 161 | Selects batch mode (prevents asking for passwords or passphrases). |
---|
| 162 | .TP |
---|
| 163 | .B \-C |
---|
| 164 | Compression enable. Passes the -C flag to |
---|
| 165 | .B ssh |
---|
| 166 | to enable compression. |
---|
| 167 | .TP |
---|
| 168 | .BI \-P "\ port |
---|
| 169 | Specifies the port to connect to on the remote host. Note that this |
---|
| 170 | option is written with a capital P, because \-p is already reserved for |
---|
| 171 | preserving the times and modes of the file in rcp. |
---|
| 172 | .TP |
---|
| 173 | .BI \-S "\ path-to-ssh |
---|
| 174 | Specifies the path to ssh program. |
---|
| 175 | |
---|
[12645] | 176 | .SH ENVIRONMENT VARIABLES |
---|
| 177 | .LP |
---|
| 178 | You can turn scp statistics on or off by setting |
---|
| 179 | .B SSH_SCP_STATS |
---|
| 180 | or |
---|
| 181 | .B SSH_NO_SCP_STATS |
---|
| 182 | environment variables. To turn on or off scp statistics for each file, |
---|
| 183 | use |
---|
| 184 | .B SSH_ALL_SCP_STATS |
---|
| 185 | or |
---|
| 186 | .B SSH_NO_ALL_SCP_STATS |
---|
| 187 | environment variables. The default value of the statistics can be set |
---|
| 188 | when the ssh is configured. Next the scp checks those environment |
---|
| 189 | variables and after that command line options. |
---|
| 190 | |
---|
[10563] | 191 | .SH AUTHORS |
---|
| 192 | .LP |
---|
| 193 | Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@ssh.fi> |
---|
| 194 | |
---|
| 195 | .SH DERIVATION |
---|
| 196 | .LP |
---|
| 197 | .B Scp |
---|
| 198 | is based on the |
---|
| 199 | .B rcp |
---|
| 200 | program in BSD source code from the Regents of the University of |
---|
| 201 | California. |
---|
| 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) |
---|