diff --git a/README.md b/README.md index 7417c8d..0eca8a2 100644 --- a/README.md +++ b/README.md @@ -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).