Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

... not stunnel?

Also, FWIW, I use systemd service for an ssh tunnel instead of autossh. Works brilliantly.



Details:

    [Unit]
    Description=SSH remote forwarding to here
    After=network-online.target
    Requires=network-online.target

    [Service]
    User=autossh
    ExecStart=/bin/ssh -v -N -o PasswordAuthentication=no -o "ServerAliveInterval 60" -o     "ServerAliveCountMax 3" -R 2222:localhost:22 -o TCPKeepAlive=yes -p 222 -i /home/autossh/.ssh/autossh autossh@some-hostname-redacted.com
    Restart=on-failure
    RestartSec=1200

    [Install]
    WantedBy=multi-user.target




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: