diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2016-07-15 00:24:31 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2016-07-15 00:24:31 +0000 |
commit | 15375d7661dc3466e7e2c1f1d8561e63c891ae1b (patch) | |
tree | 60f0533416ccf23b14e0cae4be92dc7eae001344 /usr.bin/ssh/ssh_config.5 | |
parent | 555d9a31b7907e439bd0644e610a098f2c920506 (diff) |
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@
Diffstat (limited to 'usr.bin/ssh/ssh_config.5')
-rw-r--r-- | usr.bin/ssh/ssh_config.5 | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh_config.5 b/usr.bin/ssh/ssh_config.5 index 45fe892023a..86057702391 100644 --- a/usr.bin/ssh/ssh_config.5 +++ b/usr.bin/ssh/ssh_config.5 @@ -33,8 +33,8 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: ssh_config.5,v 1.232 2016/05/04 14:29:58 markus Exp $ -.Dd $Mdocdate: May 4 2016 $ +.\" $OpenBSD: ssh_config.5,v 1.233 2016/07/15 00:24:30 djm Exp $ +.Dd $Mdocdate: July 15 2016 $ .Dt SSH_CONFIG 5 .Os .Sh NAME @@ -1358,6 +1358,30 @@ For example, the following directive would connect via an HTTP proxy at .Bd -literal -offset 3n ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p .Ed +.It Cm ProxyJump +Specifies one or more jump proxies as +.Xo +.Sm off +.Oo Ar user @ Oc +.Ar host +.Ns Op : Ns Ar port +.Sm on +.Xc . +Multiple proxies may be separated by comma characters. +Setting this option will cause +.Xr ssh 1 +to connect to the target host by first making a +.Xr ssh 1 +connection to the specified +.Cm ProxyJump +host and then establishing a +a TCP forwarding to the ultimate target from there. +.Pp +Note that this option will compete with the +.Cm ProxyCommand +option - whichever is specified first will prevent later instances of the +other from taking effect. +.Pp .It Cm ProxyUseFdpass Specifies that .Cm ProxyCommand |