- create systemd units location dir: ~/.config/systemd/user
- create systemd service there:
ssh-proxy.service
Description=Setup a secure ssh proxy
#Requires=network.target # network.target doesnt exist
#After=network.target
[Service]
# You shuold have an alias like myhost at ~/.ssh/config
ExecStart=/usr/bin/ssh -D 5555 -N myhost
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=3
Restart=always
[Install]
WantedBy=default.target
- start & enable it via: systemctl --user enable ssh-proxy