From 43084760c6091e35d1a4a08c9eed8648d82baf71 Mon Sep 17 00:00:00 2001 From: Florian Schlegel Date: Thu, 28 Apr 2022 22:05:47 +0200 Subject: [PATCH] mention -g, further clarify use of *: and other wording --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 04c122b..811d3c0 100644 --- a/README.md +++ b/README.md @@ -93,14 +93,15 @@ The client side ssh command looks like: * `-o "ServerAliveCountMax 3"` mark connection as failed after 3 lost test messages * `-o "ExitOnForwardFailure yes"` quit ssh process if self check or __any of the forwardings__ fail (this is a crucial feature missing in autossh) * `-4` (not shown above) is optional to foce ssh to use IPv4 only (in case of problems with IPv6) +* `-g` (not used here) does the same as `[bind_address:]` set to `*:` (with -L the client offers the port publicly; with -R the server offers the port publicly) * `-R [bind_address:]port:host:hostport` (see above -> `permitlisten`; can be repeated multiple times) - * `bind_address` usually `localhost` or `*` (optional) - * `port` port that the server should open for incoming connections + * `[bind_address:]` address on the server, that the port should be bound to; defaults to `localhost:`, can be set to `*:` (optional) + * `port` port on the server that should opened for incoming connections * `host` hostname or address that the client should forward the connection to (e.g. localhost) * `hostport` existing port on the host that should be forwarded -* `-L [bind_address:]port:host:hostport` (see above -> `permitopen`; can be repeated multiple times) - * `bind_address` address on the client, that the port should be bound to (optional; usually left blank) - * `port` port that should be opened on the client +* `-L [bind_address:]port:host:hostport` (see above -> `permitopen`; can be repeated multiple times) + * `[bind_address:]` address on the client, that the port should be bound to; defaults to `localhost:`, can be set to `*:` (optional) + * `port` port on the client that should be opened * `host` host that the client wants to access through the server (e.g. `localhost` on the server itself) * `hostport` existing port that should be forwarded to the client