Skip to content

Instantly share code, notes, and snippets.

View itsmefdil's full-sized avatar
🏠
Working from home

Fadilah Riczky itsmefdil

🏠
Working from home
View GitHub Profile
@itsmefdil
itsmefdil / README-setup-tunnel-as-systemd-service.md
Created July 18, 2024 07:33 — 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/[email protected]. The template parameter will correspond to the name of target host:

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