start to document ssh command options used here

This commit is contained in:
Florz 2021-02-19 00:25:42 +01:00
parent 276773943f
commit dcb2866170
1 changed files with 20 additions and 0 deletions

View File

@ -77,3 +77,23 @@ disown
exit 0
```
Don't forget to mark the script as executable: `chmod +x /etc/rc.local`
The client side ssh command looks like:
`ssh ssh-port-forwarding@myserver.example.com -TNnqakx -o "TCPKeepAlive yes" -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" -L [...] -R [...]`
* `-T`
* `-N`
* `-n`
* `-q`
* `-a`
* `-k`
* `-x`
* `-o "TCPKeepAlive yes"`
* `-o "ServerAliveInterval 5"`
* `-o "ServerAliveCountMax 3"`
* `-o "ExitOnForwardFailure yes"`
* `-4` (not shown above) is optional to foce ssh to use IPv4 only (in case of problems with IPv6)
* `-L` (can be repeated multiple times)
* `-R` (can be repeated multiple times)
Please beware that the hostname part in the `-L` and `-R` options must be spelled exactly the same as in the `permitlisten` and `permitopen` variables on the server ("Localhost", "localhost" and "127.0.0.1" are treated different).