first part of Client side configuration

This commit is contained in:
Florz 2021-02-19 00:06:57 +01:00
parent 8d75c7d77e
commit 276773943f
1 changed files with 17 additions and 1 deletions

View File

@ -60,4 +60,20 @@ The `permitopen` and `permitlisten` options can be used multiple times in a row.
* `*` allows access on all ports (e.g. from the Internet) 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 should be allowed to be forwarded to the client
* `port` is the port number on the `host` that should be allowed to be forwarded to the client
## Client side configuration
You should run the client side ssh command in a loop because it is tuned to terminate as soon as errors are detected. Don't worry, this is well tested. If you are old school you simply put this into `/etc/rc.local`:
```
#!/bin/bash
(while true; do
ssh ...
sleep 30
done) &
disown
exit 0
```
Don't forget to mark the script as executable: `chmod +x /etc/rc.local`