summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2016-07-15 00:24:30 +0000
committerDamien Miller <djm@mindrot.org>2016-07-15 14:20:10 +1000
commited877ef653847d056bb433975d731b7a1132a979 (patch)
tree855230b944a0fc2eebdaa4c037f911e28ff21e17 /ssh_config.5
parent5c02dd126206a26785379e80f2d3848e4470b711 (diff)
upstream commit
Add a ProxyJump ssh_config(5) option and corresponding -J ssh(1) command-line flag to allow simplified indirection through a SSH bastion or "jump host". These options construct a proxy command that connects to the specified jump host(s) (more than one may be specified) and uses port-forwarding to establish a connection to the next destination. This codifies the safest way of indirecting connections through SSH servers and makes it easy to use. ok markus@ Upstream-ID: fa899cb8b26d889da8f142eb9774c1ea36b04397
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.528
1 files changed, 26 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index 45fe89202..860577023 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -33,8 +33,8 @@
33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: ssh_config.5,v 1.232 2016/05/04 14:29:58 markus Exp $ 36.\" $OpenBSD: ssh_config.5,v 1.233 2016/07/15 00:24:30 djm Exp $
37.Dd $Mdocdate: May 4 2016 $ 37.Dd $Mdocdate: July 15 2016 $
38.Dt SSH_CONFIG 5 38.Dt SSH_CONFIG 5
39.Os 39.Os
40.Sh NAME 40.Sh NAME
@@ -1358,6 +1358,30 @@ For example, the following directive would connect via an HTTP proxy at
1358.Bd -literal -offset 3n 1358.Bd -literal -offset 3n
1359ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p 1359ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
1360.Ed 1360.Ed
1361.It Cm ProxyJump
1362Specifies one or more jump proxies as
1363.Xo
1364.Sm off
1365.Oo Ar user @ Oc
1366.Ar host
1367.Ns Op : Ns Ar port
1368.Sm on
1369.Xc .
1370Multiple proxies may be separated by comma characters.
1371Setting this option will cause
1372.Xr ssh 1
1373to connect to the target host by first making a
1374.Xr ssh 1
1375connection to the specified
1376.Cm ProxyJump
1377host and then establishing a
1378a TCP forwarding to the ultimate target from there.
1379.Pp
1380Note that this option will compete with the
1381.Cm ProxyCommand
1382option - whichever is specified first will prevent later instances of the
1383other from taking effect.
1384.Pp
1361.It Cm ProxyUseFdpass 1385.It Cm ProxyUseFdpass
1362Specifies that 1386Specifies that
1363.Cm ProxyCommand 1387.Cm ProxyCommand