Questions tagged [autossh]

autossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic.

autossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic.

The original idea and the mechanism were from rstunnel (Reliable SSH Tunnel). With version 1.2 of autossh the method changed: autossh uses ssh to construct a loop of ssh forwardings (one from local to remote, one from remote to local), and then sends test data that it expects to get back.
(The idea is thanks to Terrence Martin.)

Man page: http://manpages.ubuntu.com/manpages/gutsy/man1/autossh.1.html

32 questions
0
votes
3 answers

"autossh" output change under "expect"

I am using autossh with a monitoring flag. autossh prints to standard output every time it send test packets. When using autossh under expect the text packets messages are not printed. I don't know if they are sent at all which is important to keep…
ozma
  • 1,633
  • 1
  • 20
  • 28
-1
votes
1 answer

issue with restarting autossh reverse tunnel on boot

I seem to have a weird issue: I want to restart a reverse ssh tunnel on boot, I've tried it with an init script (that works fine when executed as user) and with an added line in /etc/rc.d but none of it works. What I get after boot is: $ ps ax |…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
1 2
3