summaryrefslogtreecommitdiff
path: root/scp.1
diff options
context:
space:
mode:
Diffstat (limited to 'scp.1')
-rw-r--r--scp.145
1 files changed, 25 insertions, 20 deletions
diff --git a/scp.1 b/scp.1
index 76ce33361..8d251e34a 100644
--- a/scp.1
+++ b/scp.1
@@ -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.77 2018/02/23 07:38:09 jmc Exp $
12.\" 12.\"
13.Dd $Mdocdate: May 3 2017 $ 13.Dd $Mdocdate: February 23 2018 $
14.Dt SCP 1 14.Dt SCP 1
15.Os 15.Os
16.Sh NAME 16.Sh NAME
@@ -18,7 +18,6 @@
18.Nd secure copy (remote file copy program) 18.Nd secure copy (remote file copy program)
19.Sh SYNOPSIS 19.Sh SYNOPSIS
20.Nm scp 20.Nm scp
21.Bk -words
22.Op Fl 346BCpqrv 21.Op Fl 346BCpqrv
23.Op Fl c Ar cipher 22.Op Fl c Ar cipher
24.Op Fl F Ar ssh_config 23.Op Fl F Ar ssh_config
@@ -27,20 +26,7 @@
27.Op Fl o Ar ssh_option 26.Op Fl o Ar ssh_option
28.Op Fl P Ar port 27.Op Fl P Ar port
29.Op Fl S Ar program 28.Op Fl S Ar program
30.Sm off 29.Ar source ... target
31.Oo
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 30.Sh DESCRIPTION
45.Nm 31.Nm
46copies files between hosts on a network. 32copies files between hosts on a network.
@@ -53,15 +39,33 @@ same security as
53will ask for passwords or passphrases if they are needed for 39will ask for passwords or passphrases if they are needed for
54authentication. 40authentication.
55.Pp 41.Pp
56File names may contain a user and host specification to indicate 42The
57that the file is to be copied to/from that host. 43.Ar source
44and
45.Ar target
46may be specified as a local pathname, a remote host with optional path
47in the form
48.Sm off
49.Oo user @ Oc host : Op path ,
50.Sm on
51or a URI in the form
52.Sm off
53.No scp:// Oo user @ Oc host Oo : port Oc Op / path .
54.Sm on
58Local file names can be made explicit using absolute or relative pathnames 55Local file names can be made explicit using absolute or relative pathnames
59to avoid 56to avoid
60.Nm 57.Nm
61treating file names containing 58treating file names containing
62.Sq :\& 59.Sq :\&
63as host specifiers. 60as host specifiers.
64Copies between two remote hosts are also permitted. 61.Pp
62When copying between two remote hosts, if the URI format is used, a
63.Ar port
64may only be specified on the
65.Ar target
66if the
67.Fl 3
68option is used.
65.Pp 69.Pp
66The options are as follows: 70The options are as follows:
67.Bl -tag -width Ds 71.Bl -tag -width Ds
@@ -120,6 +124,7 @@ For full details of the options listed below, and their possible values, see
120.It AddressFamily 124.It AddressFamily
121.It BatchMode 125.It BatchMode
122.It BindAddress 126.It BindAddress
127.It BindInterface
123.It CanonicalDomains 128.It CanonicalDomains
124.It CanonicalizeFallbackLocal 129.It CanonicalizeFallbackLocal
125.It CanonicalizeHostname 130.It CanonicalizeHostname