[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#259780: ssh: ClientAliveInterval does not work together with -N



Package: ssh
Version: 1:3.4p1-1.woody.3
Severity: normal

I've got this in my /etc/ssh/sshd_config:
 ClientAliveInterval 30
 ClientAliveCountMax 3

and it works fine.  But if I start a ssh with option -N sshd stops
sending alive packets and (therefore) never quits for a very long time.
For example, I start
 ssh -o ServerAliveInterval=10 -N host1 -C -c blowfish -R 2222:host2:22
Then after my ppp connection terminates, the local ssh terminates, too,
but the sshd on host1 keeps running.

I turned on LogLevel DEBUG3 and saw that ssh-session without -N send
 debug1: channel request 0: keepalive@openssh.com
regularly, but ssh-sessions with -N do not.

I suppose that this bug report is basically the same as #202868
but with more detail.  :-)
 
My workaround for now is that I don't use -N but sleep:
 ssh -o ServerAliveInterval=10 host1 -C -c blowfish -R 2222:host2:22 "sleep 86400"

but it would certainly be nice if it was fixed - or explained in the
manual in case that it is a hidden feature not a bug.
Thanks,
 Andy.


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux white.akte.de 2.4.26-pentium2-2 #1 Die Jun 15 14:59:55 CEST 2004 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

Versions of packages ssh depends on:
ii  adduser                3.47              Add and remove users and groups
ii  debconf                1.3.22            Debian configuration management sy
ii  libc6                  2.2.5-11.5        GNU C Library: Shared libraries an
ii  libpam-modules         0.72-35           Pluggable Authentication Modules f
ii  libpam0g               0.72-35           Pluggable Authentication Modules l
ii  libssl0.9.6            0.9.6c-2.woody.6  SSL shared libraries
ii  libwrap0               7.6-9             Wietse Venema's TCP wrappers libra
ii  zlib1g                 1:1.1.4-1.0woody0 compression library - runtime





Reply to: