Last active 1757887718

admin revised this gist 1757887718. Go to revision

1 file changed, 11 insertions

ssh-port.service(file created)

@@ -0,0 +1,11 @@
1 + [Unit]
2 + Description=SSH tunnel
3 + After=network-online.target
4 + [Service]
5 + ExecStart=/usr/bin/ssh -NT \
6 + -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes \
7 + -R 4433:127.0.0.1:4430 user@1.2.3.4 -p 22
8 + RestartSec=15
9 + Restart=always
10 + [Install]
11 + WantedBy=network-online.target
Newer Older