Skip to content

Instantly share code, notes, and snippets.

View ngunsu's full-sized avatar
:octocat:

Cristhian Aguilera ngunsu

:octocat:
  • Universidad San Sebastian
  • Puerto Montt, Chile
View GitHub Profile
git submodule update --init --recursive
@ngunsu
ngunsu / README-setup-tunnel-as-systemd-service.md
Created July 29, 2019 20:13 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target