From dc9260af5a2976de4577afb4ceaccbadc5f65ed8 Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 4 Sep 2024 21:39:37 +0300 Subject: [PATCH] fix ssh-proxy service --- .../systemd/user/{ssh-proxy.service => ssh-proxy@.service} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename home/user/.config/systemd/user/{ssh-proxy.service => ssh-proxy@.service} (54%) diff --git a/home/user/.config/systemd/user/ssh-proxy.service b/home/user/.config/systemd/user/ssh-proxy@.service similarity index 54% rename from home/user/.config/systemd/user/ssh-proxy.service rename to home/user/.config/systemd/user/ssh-proxy@.service index 5a0230c..acce3c4 100644 --- a/home/user/.config/systemd/user/ssh-proxy.service +++ b/home/user/.config/systemd/user/ssh-proxy@.service @@ -3,9 +3,11 @@ Description=SSH proxy Requires=default.target After=default.target +# ln -s % ~/.config/systemd/user +# systemctl --user enable --now ssh-proxy@server.vpn [Service] Type=simple -ExecStart=/usr/bin/ssh -o ControlMaster=no -o ExitOnForwardFailure=yes -vCTN -D 127.0.0.1:1080 server.vpn +ExecStart=/usr/bin/ssh -o ControlMaster=no -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -vCTN -D 127.0.0.1:1080 %i Restart=on-failure [Install]