Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Keep-alive daemon for ssh and other terminal sessions
Shell C
branch: master
Failed to load latest commit information.
src Update docs, more autoconf/automake
AUTHORS Update docs, more autoconf/automake
COPYING Initial commit, version 1.2.0
ChangeLog Update docs, more autoconf/automake
INSTALL Initial commit, version 1.2.0
Makefile Update docs, more autoconf/automake Initial commit, version 1.2.0 Update docs, more autoconf/automake
NEWS Initial commit, version 1.2.0
TODO Initial commit, version 1.2.0
aclocal.m4 Update autoconf/automake
configure Update docs, more autoconf/automake
depcomp Initial commit, version 1.2.0
install-sh Initial commit, version 1.2.0
missing Initial commit, version 1.2.0
mkinstalldirs Initial commit, version 1.2.0




login_keepalived [ -p | -g ] [ -s <sec> -d -v ]
  -p        = private mode (keeps you alive)
  -g        = global mode  (keeps everybody alive)
  -s <sec>  = seconds to sleep between each keepalive-write (default = 60)
  -v        = be verbose when starting (mostly for private mode)
  -d        = logs debug messages through syslogd (daemon.debug)


login_keepalived is a small daemon that keeps remote terminal logins alive.
I wrote this because my remote ssh sessions where constantly being cut
off after a few minutes of inactivity, it seems by some
router/firewall on the Internet which I couldn't control.


login_keepalived is run on the server-side of the connection and
operates by periodically writing an invisible NULL character to the
remote login terminal(s). The NULL character has no impact on the terminal
session, but keeps the TCP session alive.

login_keepalived has two modes of operation:

  1. global-daemon-mode. In this mode login_keepalived periodically
writes to all remote login terminals on the system. This is the
preferred way of operation. global-daemon-mode must be run by root.

  2. private-user-mode. In this mode login_keepalived only affects the
terminal of the user that started it. If your systems administrator
doesn't want to run login_keepalived in global-daemon-mode, or
global-daemon-mode is unwanted for some other reason, this is the mode
to use.

!!! NOTE !!!
Please note that it must be started directly from the shell or
one of the shell startup files (.login, .bash_profile, .bashrc, etc
depending on your shell), so that the shell is the parent-pid of


login_keepalived was developed and tested on the GNU/Linux platform. I
see no reason why it shouldn't work on other *nixes as well, but it
might very well need a little tweaking. If you get it running on
something else than GNU/Linux, please send me a note on what/how you
did it and I'll include your information here. Patches and suggestions

	Keep Alive,
	/Johan Ekenberg

Something went wrong with that request. Please try again.