From 31cf397c4eb7dfe6d5a6ab9566302f4c504a9d86 Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 29 Aug 2024 19:44:47 +0300 Subject: [PATCH] add systemd per-user service for ssh proxy --- home/user/.config/systemd/user/ssh-proxy.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 home/user/.config/systemd/user/ssh-proxy.service diff --git a/home/user/.config/systemd/user/ssh-proxy.service b/home/user/.config/systemd/user/ssh-proxy.service new file mode 100644 index 0000000..5a0230c --- /dev/null +++ b/home/user/.config/systemd/user/ssh-proxy.service @@ -0,0 +1,12 @@ +[Unit] +Description=SSH proxy +Requires=default.target +After=default.target + +[Service] +Type=simple +ExecStart=/usr/bin/ssh -o ControlMaster=no -o ExitOnForwardFailure=yes -vCTN -D 127.0.0.1:1080 server.vpn +Restart=on-failure + +[Install] +WantedBy=default.target \ No newline at end of file