Skip to content
Snippets Groups Projects
  • Felix Fietkau's avatar
    f2fdd8eb
    dropbear: add options SSHKeepAlive and IdleTimeout. · f2fdd8eb
    Felix Fietkau authored
    
    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: default avatarYousong Zhou <yszhou4tech@gmail.com>
    
    SVN-Revision: 40299
    f2fdd8eb
    History
    dropbear: add options SSHKeepAlive and IdleTimeout.
    Felix Fietkau authored
    
    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: default avatarYousong Zhou <yszhou4tech@gmail.com>
    
    SVN-Revision: 40299