dropbear: add options SSHKeepAlive and IdleTimeout.
authorFelix Fietkau <nbd@openwrt.org>
Sat, 29 Mar 2014 17:05:35 +0000 (17:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 29 Mar 2014 17:05:35 +0000 (17:05 +0000)
commitf2fdd8ebdb1617218201d16eeb54a5a905768764
treebd04897a6f67ac6d8af3c60768bff70e848d66ac
parentdd5a12c5a10953000a3b29e9801b429523d8ae65
dropbear: add options SSHKeepAlive and IdleTimeout.

Without timeout mechanism, if ssh client disconnected without sending
FIN or RST, forked dropbear servers would hang there for
KEX_RETRY_TIMEOUT seconds (8 hours).

TCP keepalive is not implemented in dropbear yet, thus the name
SSHKeepAlive.

300 seconds in this patch is selected from the default value of
ServerAliveInterval for Debian ssh client (See man ssh_config).

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 40299
package/network/services/dropbear/files/dropbear.init