diff options
author | millert@openbsd.org <millert@openbsd.org> | 2017-10-21 23:06:24 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-10-23 16:10:08 +1100 |
commit | 887669ef032d63cf07f53cada216fa8a0c9a7d72 (patch) | |
tree | 089b20255da21a489d7bc796a8ee86bd0b8f028f /scp.1 | |
parent | d27bff293cfeb2252f4c7a58babe5ad3262c6c98 (diff) |
upstream commit
Add URI support to ssh, sftp and scp. For example
ssh://user@host or sftp://user@host/path. The connection parameters
described in draft-ietf-secsh-scp-sftp-ssh-uri-04 are not implemented since
the ssh fingerprint format in the draft uses md5 with no way to specify the
hash function type. OK djm@
Upstream-ID: 4ba3768b662d6722de59e6ecb00abf2d4bf9cacc
Diffstat (limited to 'scp.1')
-rw-r--r-- | scp.1 | 41 |
1 files changed, 22 insertions, 19 deletions
@@ -8,9 +8,9 @@ | |||
8 | .\" | 8 | .\" |
9 | .\" Created: Sun May 7 00:14:37 1995 ylo | 9 | .\" Created: Sun May 7 00:14:37 1995 ylo |
10 | .\" | 10 | .\" |
11 | .\" $OpenBSD: scp.1,v 1.74 2017/05/03 21:49:18 naddy Exp $ | 11 | .\" $OpenBSD: scp.1,v 1.75 2017/10/21 23:06:24 millert Exp $ |
12 | .\" | 12 | .\" |
13 | .Dd $Mdocdate: May 3 2017 $ | 13 | .Dd $Mdocdate: October 21 2017 $ |
14 | .Dt SCP 1 | 14 | .Dt SCP 1 |
15 | .Os | 15 | .Os |
16 | .Sh NAME | 16 | .Sh NAME |
@@ -27,20 +27,8 @@ | |||
27 | .Op Fl o Ar ssh_option | 27 | .Op Fl o Ar ssh_option |
28 | .Op Fl P Ar port | 28 | .Op Fl P Ar port |
29 | .Op Fl S Ar program | 29 | .Op Fl S Ar program |
30 | .Sm off | 30 | .Ar source ... |
31 | .Oo | 31 | .Ar target |
32 | .Op Ar user No @ | ||
33 | .Ar host1 : | ||
34 | .Oc Ar file1 | ||
35 | .Sm on | ||
36 | .Ar ... | ||
37 | .Sm off | ||
38 | .Oo | ||
39 | .Op Ar user No @ | ||
40 | .Ar host2 : | ||
41 | .Oc Ar file2 | ||
42 | .Sm on | ||
43 | .Ek | ||
44 | .Sh DESCRIPTION | 32 | .Sh DESCRIPTION |
45 | .Nm | 33 | .Nm |
46 | copies files between hosts on a network. | 34 | copies files between hosts on a network. |
@@ -53,15 +41,30 @@ same security as | |||
53 | will ask for passwords or passphrases if they are needed for | 41 | will ask for passwords or passphrases if they are needed for |
54 | authentication. | 42 | authentication. |
55 | .Pp | 43 | .Pp |
56 | File names may contain a user and host specification to indicate | 44 | The |
57 | that the file is to be copied to/from that host. | 45 | .Ar target |
46 | and | ||
47 | .Ar destination | ||
48 | may be specified as a local pathname, a remote host with optional path | ||
49 | in the form | ||
50 | .Oo Ar user Ns @ Oc Ns Ar host Ns : Ns Oo Ar path Oc , | ||
51 | or an scp URI in the form | ||
52 | .No scp:// Ns Oo Ar user Ns @ Oc Ns Ar host Ns | ||
53 | .Oo : Ns Ar port Oc Ns Oo / Ns Ar path Oc . | ||
58 | Local file names can be made explicit using absolute or relative pathnames | 54 | Local file names can be made explicit using absolute or relative pathnames |
59 | to avoid | 55 | to avoid |
60 | .Nm | 56 | .Nm |
61 | treating file names containing | 57 | treating file names containing |
62 | .Sq :\& | 58 | .Sq :\& |
63 | as host specifiers. | 59 | as host specifiers. |
64 | Copies between two remote hosts are also permitted. | 60 | .Pp |
61 | When copying between two remote hosts, if the URI format is used, a | ||
62 | .Ar port | ||
63 | may only be specified on the | ||
64 | .Ar target | ||
65 | if the | ||
66 | .Fl 3 | ||
67 | option is used. | ||
65 | .Pp | 68 | .Pp |
66 | The options are as follows: | 69 | The options are as follows: |
67 | .Bl -tag -width Ds | 70 | .Bl -tag -width Ds |