summaryrefslogtreecommitdiff
path: root/scp.1
diff options
context:
space:
mode:
authortb@openbsd.org <tb@openbsd.org>2019-01-21 22:50:42 +0000
committerDamien Miller <djm@mindrot.org>2019-01-22 22:42:01 +1100
commit622dedf1a884f2927a9121e672bd9955e12ba108 (patch)
treede34eb30dd40556cf73ed5e6e6ef3b8c945436b0 /scp.1
parentc882d74652800150d538e22c80dd2bd3cdd5fae2 (diff)
downloadopenssh-git-622dedf1a884f2927a9121e672bd9955e12ba108.tar.gz
upstream: Add a -J option as a shortcut for -o Proxyjump= to scp(1)
and sftp(1) to match ssh(1)'s interface. ok djm OpenBSD-Commit-ID: a75bc2d5f329caa7229a7e9fe346c4f41c2663fc
Diffstat (limited to 'scp.1')
-rw-r--r--scp.117
1 files changed, 15 insertions, 2 deletions
diff --git a/scp.1 b/scp.1
index 0e5cc1b2..9fb6c23c 100644
--- a/scp.1
+++ b/scp.1
@@ -8,9 +8,9 @@
.\"
.\" Created: Sun May 7 00:14:37 1995 ylo
.\"
-.\" $OpenBSD: scp.1,v 1.81 2018/09/20 06:58:48 jmc Exp $
+.\" $OpenBSD: scp.1,v 1.82 2019/01/21 22:50:42 tb Exp $
.\"
-.Dd $Mdocdate: September 20 2018 $
+.Dd $Mdocdate: January 21 2019 $
.Dt SCP 1
.Os
.Sh NAME
@@ -106,6 +106,19 @@ Selects the file from which the identity (private key) for public key
authentication is read.
This option is directly passed to
.Xr ssh 1 .
+.It Fl J Ar destination
+Connect to the target host by first making a
+.Nm
+connection to the jump host described by
+.Ar destination
+and then establishing a TCP forwarding to the ultimate destination from
+there.
+Multiple jump hops may be specified separated by comma characters.
+This is a shortcut to specify a
+.Cm ProxyJump
+configuration directive.
+This option is directly passed to
+.Xr ssh 1 .
.It Fl l Ar limit
Limits the used bandwidth, specified in Kbit/s.
.It Fl o Ar ssh_option