su -s /bin/sh autossh -c 'autossh -M 0 -N -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure=yes" -f -T -R localhost:<target port>:<local IP or localhost>:<local port> <user>@<domain>'
+
su -s /bin/sh autossh -c 'autossh -M 0 -N -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure=yes" -f -T -R <target IP or localhost>:<target port>:<local IP or localhost>:<local port> <user>@<domain>'
</pre>
</pre>
Line 60:
Line 62:
! Parameter !! Description
! Parameter !! Description
|-
|-
−
| localhost || localhost or IP address on target system
+
| <target IP or localhost> || localhost or IP address on target system
|-
|-
| <target port> || port on target system
| <target port> || port on target system
Line 98:
Line 100:
−
''Note: You may have to enable rc.local on Ubuntu and Debian based systems via systemd. Refer to your distributions documentation for information on how to enable it.''
+
''Note: You may have to enable rc.local on Ubuntu and Debian based systems via systemd. Refer to your distribution's documentation for information on how to enable it.''