Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 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 | .\" |
Ben Lindstrom | cc7aafc | 2001-09-18 05:56:57 +0000 | [diff] [blame] | 12 | .\" $OpenBSD: scp.1,v 1.20 2001/09/17 23:56:07 stevesk Exp $ |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 13 | .\" |
| 14 | .Dd September 25, 1999 |
| 15 | .Dt SCP 1 |
| 16 | .Os |
| 17 | .Sh NAME |
| 18 | .Nm scp |
| 19 | .Nd secure copy (remote file copy program) |
| 20 | .Sh SYNOPSIS |
| 21 | .Nm scp |
Ben Lindstrom | cc7aafc | 2001-09-18 05:56:57 +0000 | [diff] [blame] | 22 | .Op Fl pqrvBC46 |
Ben Lindstrom | 1e24324 | 2001-09-18 05:38:44 +0000 | [diff] [blame] | 23 | .Op Fl F Ar ssh_config |
Damien Miller | 7b28dc5 | 2000-09-05 13:34:53 +1100 | [diff] [blame] | 24 | .Op Fl S Ar program |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 25 | .Op Fl P Ar port |
| 26 | .Op Fl c Ar cipher |
| 27 | .Op Fl i Ar identity_file |
Ben Lindstrom | 14c62eb | 2001-08-15 23:25:46 +0000 | [diff] [blame] | 28 | .Op Fl o Ar ssh_option |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 29 | .Sm off |
| 30 | .Oo |
| 31 | .Op Ar user@ |
| 32 | .Ar host1 No : |
| 33 | .Oc Ns Ar file1 |
| 34 | .Sm on |
| 35 | .Op Ar ... |
| 36 | .Sm off |
| 37 | .Oo |
| 38 | .Op Ar user@ |
| 39 | .Ar host2 No : |
| 40 | .Oc Ar file2 |
| 41 | .Sm on |
Damien Miller | 22c7726 | 2000-04-13 12:26:34 +1000 | [diff] [blame] | 42 | .Sh DESCRIPTION |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 43 | .Nm |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 44 | copies files between hosts on a network. |
| 45 | It uses |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 46 | .Xr ssh 1 |
| 47 | for data transfer, and uses the same authentication and provides the |
| 48 | same security as |
| 49 | .Xr ssh 1 . |
| 50 | Unlike |
| 51 | .Xr rcp 1 , |
| 52 | .Nm |
| 53 | will ask for passwords or passphrases if they are needed for |
| 54 | authentication. |
| 55 | .Pp |
| 56 | Any file name may contain a host and user specification to indicate |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 57 | that the file is to be copied to/from that host. |
| 58 | Copies between two remote hosts are permitted. |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 59 | .Pp |
| 60 | The options are as follows: |
| 61 | .Bl -tag -width Ds |
| 62 | .It Fl c Ar cipher |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 63 | Selects the cipher to use for encrypting the data transfer. |
| 64 | This option is directly passed to |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 65 | .Xr ssh 1 . |
| 66 | .It Fl i Ar identity_file |
| 67 | Selects the file from which the identity (private key) for RSA |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 68 | authentication is read. |
| 69 | This option is directly passed to |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 70 | .Xr ssh 1 . |
| 71 | .It Fl p |
| 72 | Preserves modification times, access times, and modes from the |
| 73 | original file. |
| 74 | .It Fl r |
| 75 | Recursively copy entire directories. |
| 76 | .It Fl v |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 77 | Verbose mode. |
| 78 | Causes |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 79 | .Nm |
Damien Miller | 22c7726 | 2000-04-13 12:26:34 +1000 | [diff] [blame] | 80 | and |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 81 | .Xr ssh 1 |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 82 | to print debugging messages about their progress. |
| 83 | This is helpful in |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 84 | debugging connection, authentication, and configuration problems. |
| 85 | .It Fl B |
| 86 | Selects batch mode (prevents asking for passwords or passphrases). |
| 87 | .It Fl q |
| 88 | Disables the progress meter. |
| 89 | .It Fl C |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 90 | Compression enable. |
| 91 | Passes the |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 92 | .Fl C |
| 93 | flag to |
| 94 | .Xr ssh 1 |
| 95 | to enable compression. |
Ben Lindstrom | 1e24324 | 2001-09-18 05:38:44 +0000 | [diff] [blame] | 96 | .It Fl F Ar ssh_config |
| 97 | Specifies an alternative |
| 98 | per-user configuration file for |
| 99 | .Nm ssh . |
| 100 | This option is directly passed to |
| 101 | .Xr ssh 1 . |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 102 | .It Fl P Ar port |
Damien Miller | 450a7a1 | 2000-03-26 13:04:51 +1000 | [diff] [blame] | 103 | Specifies the port to connect to on the remote host. |
| 104 | Note that this option is written with a capital |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 105 | .Sq P , |
| 106 | because |
| 107 | .Fl p |
| 108 | is already reserved for preserving the times and modes of the file in |
| 109 | .Xr rcp 1 . |
Damien Miller | 7b28dc5 | 2000-09-05 13:34:53 +1100 | [diff] [blame] | 110 | .It Fl S Ar program |
| 111 | Name of |
| 112 | .Ar program |
Damien Miller | 874d77b | 2000-10-14 16:23:11 +1100 | [diff] [blame] | 113 | to use for the encrypted connection. |
| 114 | The program must understand |
Damien Miller | ad833b3 | 2000-08-23 10:46:23 +1000 | [diff] [blame] | 115 | .Xr ssh 1 |
| 116 | options. |
Ben Lindstrom | 14c62eb | 2001-08-15 23:25:46 +0000 | [diff] [blame] | 117 | .It Fl o Ar ssh_option |
| 118 | Can be used to pass options to |
| 119 | .Nm ssh |
| 120 | in the format used in the |
| 121 | .Xr ssh 1 |
| 122 | configuration file. This is useful for specifying options |
| 123 | for which there is no separate |
| 124 | .Nm scp |
Ben Lindstrom | 594e203 | 2001-09-12 18:35:30 +0000 | [diff] [blame] | 125 | command-line flag. For example, forcing the use of protocol |
| 126 | version 1 is specified using |
Ben Lindstrom | 14c62eb | 2001-08-15 23:25:46 +0000 | [diff] [blame] | 127 | .Ic scp -oProtocol=1 . |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 128 | .It Fl 4 |
| 129 | Forces |
| 130 | .Nm |
| 131 | to use IPv4 addresses only. |
| 132 | .It Fl 6 |
| 133 | Forces |
| 134 | .Nm |
| 135 | to use IPv6 addresses only. |
Damien Miller | 3702396 | 2000-07-11 17:31:38 +1000 | [diff] [blame] | 136 | .El |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 137 | .Sh AUTHORS |
| 138 | Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> |
| 139 | .Sh HISTORY |
| 140 | .Nm |
| 141 | is based on the |
| 142 | .Xr rcp 1 |
| 143 | program in BSD source code from the Regents of the University of |
| 144 | California. |
| 145 | .Sh SEE ALSO |
| 146 | .Xr rcp 1 , |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 147 | .Xr sftp 1 , |
Damien Miller | 32aa144 | 1999-10-29 09:15:49 +1000 | [diff] [blame] | 148 | .Xr ssh 1 , |
| 149 | .Xr ssh-add 1 , |
| 150 | .Xr ssh-agent 1 , |
| 151 | .Xr ssh-keygen 1 , |
| 152 | .Xr sshd 8 |