I use ssh -D 12345 joeuser@somewhere.com to set up dynamic port forwarding via host somewhere.com. I want to switch to using autossh to daemonize the thing and to make sure I don't need to manually monitor it.

I installed the autossh package (on my Linux Mint 18.1), but I don't quite understand what I'm supposed to do. Why aren't there any configuration/defaults files under /etc/? Where's the service which starts autossh tunnles? Do I need to do all of that manually?

  • Manual page for autossh should explain you everything. – Jakuje Jan 26 '17 at 12:17
  • @Jakuje: Very much unlikely, as it cannot tell me about distribution-level facilities for using autossh, such as init.d scripts / systemd services, /etc/defaults/ files and so on. – einpoklum Jan 27 '17 at 8:04
  • ... indeed, the man does not even begin to answer my question. – einpoklum Jan 27 '17 at 8:05
  • No, there is no such service. If you wouls wqnt one, you need to write one. – Jakuje Jan 27 '17 at 8:26
  • $ autossh -D localhost:1080 -N 'frank@' – Frank Wu Aug 12 '18 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.