further clarify the what "*" does in permitlisten

This commit is contained in:
Florian Schlegel 2022-04-15 01:17:45 +02:00
parent 4eaeefcfa6
commit 3295cbe265
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ The `permitopen` and `permitlisten` options can be used multiple times in a row.
* `port` is the port on the server that you want to open locally or towards the Internet
* `host` specifies on which interface the server should listen for incoming connections. You should either specify `localhost` or `*`
* `localhost` binds the port to the loopback device and can only be used by processes on the same server
* `*` allows access on all ports (e.g. from the Internet) if `GatewayPorts clientspecified` is set in `/etc/ssh/sshd_config`
* `*` allows access from everywhere (e.g. from the Internet, if your firewall allows that) if `GatewayPorts clientspecified` is set in `/etc/ssh/sshd_config`
* `permitopen="host:port"`
* `host` is the hostname or IP address of the server that your server should be allowed to connect to
* `port` is the port number on the `host` that will be forwarded to the client