Joknarf Tools

Unix CLI tools and automation

GitHub Shell Licence

tty-keepalive

Simulate tty activity in background to prevent stale/disconnected interactive session ($TMOUT / firewall timeout)

features

  • background process to keepalive an interactive shell session (ssh connection)
  • send OSC Virtual Bell code to tty at defined interval (silently ignored by terminal emulators)
  • exits when tty dies

usage

tty-keepalive [<SECONDS>]

in rc file:

tty-keepalive [<SECONDS>]

default <SECONDS>: 120