Add ssh tunnel to ESRF

This commit is contained in:
Thomas Dehaeze 2022-05-09 10:02:26 +02:00
parent ac89d46c5d
commit dc1f55182d

View File

@ -375,3 +375,26 @@ Restart=always
[Install] [Install]
WantedBy=default.target WantedBy=default.target
#+end_src #+end_src
* =esrf-tunnel= - SSH Tunnel
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/esrf-tunnel.service
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=Setup a secure tunnel with ESRF
After=network.target
[Service]
ExecStart=/usr/bin/ssh -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -D 8081 -q -N -T rnice.esrf.fr
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=5
Restart=always
[Install]
WantedBy=default.target
#+end_src