first part of Client side configuration
This commit is contained in:
parent
8d75c7d77e
commit
276773943f
16
README.md
16
README.md
|
@ -61,3 +61,19 @@ The `permitopen` and `permitlisten` options can be used multiple times in a row.
|
||||||
* `permitopen="host:port"`
|
* `permitopen="host:port"`
|
||||||
* `host` is the hostname or IP address of the server that your server should be allowed to connect to
|
* `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`
|
||||||
|
|
Loading…
Reference in a new issue