diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-07-15 00:24:30 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-07-15 14:20:10 +1000 |
commit | ed877ef653847d056bb433975d731b7a1132a979 (patch) | |
tree | 855230b944a0fc2eebdaa4c037f911e28ff21e17 /ssh_config.5 | |
parent | 5c02dd126206a26785379e80f2d3848e4470b711 (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.5 | 28 |
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 |
1359 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p | 1359 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p |
1360 | .Ed | 1360 | .Ed |
1361 | .It Cm ProxyJump | ||
1362 | Specifies 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 . | ||
1370 | Multiple proxies may be separated by comma characters. | ||
1371 | Setting this option will cause | ||
1372 | .Xr ssh 1 | ||
1373 | to connect to the target host by first making a | ||
1374 | .Xr ssh 1 | ||
1375 | connection to the specified | ||
1376 | .Cm ProxyJump | ||
1377 | host and then establishing a | ||
1378 | a TCP forwarding to the ultimate target from there. | ||
1379 | .Pp | ||
1380 | Note that this option will compete with the | ||
1381 | .Cm ProxyCommand | ||
1382 | option - whichever is specified first will prevent later instances of the | ||
1383 | other from taking effect. | ||
1384 | .Pp | ||
1361 | .It Cm ProxyUseFdpass | 1385 | .It Cm ProxyUseFdpass |
1362 | Specifies that | 1386 | Specifies that |
1363 | .Cm ProxyCommand | 1387 | .Cm ProxyCommand |