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)
commit31c24e7253ae989e3e134db4194c0e9fdf2da965
tree2c43817554cd176de779467df4bd83d8722a808b
parent49be87f44ec229ba03f57d0f777e6ecfe6e79d88
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40299 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/dropbear/files/dropbear.init