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]