diff --git a/build_debian.sh b/build_debian.sh index c4d748ac4d21..3d34f8f29c51 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -468,16 +468,12 @@ rm /files/etc/ssh/sshd_config/ClientAliveInterval rm /files/etc/ssh/sshd_config/ClientAliveCountMax touch /files/etc/ssh/sshd_config/EmptyLineHack rename /files/etc/ssh/sshd_config/EmptyLineHack "" -set /files/etc/ssh/sshd_config/ClientAliveInterval 300 +set /files/etc/ssh/sshd_config/ClientAliveInterval 900 set /files/etc/ssh/sshd_config/ClientAliveCountMax 0 ins #comment before /files/etc/ssh/sshd_config/ClientAliveInterval -set /files/etc/ssh/sshd_config/#comment[following-sibling::*[1][self::ClientAliveInterval]] "Close inactive client sessions after 5 minutes" -rm /files/etc/ssh/sshd_config/MaxAuthTries -set /files/etc/ssh/sshd_config/MaxAuthTries 3 +set /files/etc/ssh/sshd_config/#comment[following-sibling::*[1][self::ClientAliveInterval]] "Close inactive client sessions after 15 minutes" rm /files/etc/ssh/sshd_config/LogLevel set /files/etc/ssh/sshd_config/LogLevel VERBOSE -rm /files/etc/ssh/sshd_config/Banner -set /files/etc/ssh/sshd_config/Banner /etc/issue save quit EOF