mention -g, further clarify use of *: and other wording

This commit is contained in:
Florian Schlegel 2022-04-28 22:05:47 +02:00
parent 1f5daeb046
commit 43084760c6
1 changed files with 6 additions and 5 deletions

View File

@ -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