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