Dieses Wiki ist ein Archiv bis 2023. Das aktuelle Wiki findet sich unter https://wiki.hamburg.ccc.de/
Difference between revisions of "ChaosVPN:Tims random router configs"
(Created page with " <nowiki> ## misc nice things # stop sshd timeouts cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old sed 's/#*ClientAliveIntervalspace:[0-9]*/ClientAliveInterval 30/g' -...") |
m |
||
Line 7: | Line 7: | ||
sed 's/#*ClientAliveInterval[[:space:]][0-9]*/ClientAliveInterval 30/g' -e 's/#*ClientAliveCountMax[[:space:]][0-9]*/ClientAliveCountMax 4/g' /etc/ssh/sshd_config > /etc/ssh/tmp | sed 's/#*ClientAliveInterval[[:space:]][0-9]*/ClientAliveInterval 30/g' -e 's/#*ClientAliveCountMax[[:space:]][0-9]*/ClientAliveCountMax 4/g' /etc/ssh/sshd_config > /etc/ssh/tmp | ||
mv /etc/ssh/tmp /etc/ssh/sshd_config | mv /etc/ssh/tmp /etc/ssh/sshd_config | ||
− | + | rm /etc/ssh/tmp | |
</nowiki> | </nowiki> |
Revision as of 07:41, 8 December 2013
## misc nice things # stop sshd timeouts cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old sed 's/#*ClientAliveInterval[[:space:]][0-9]*/ClientAliveInterval 30/g' -e 's/#*ClientAliveCountMax[[:space:]][0-9]*/ClientAliveCountMax 4/g' /etc/ssh/sshd_config > /etc/ssh/tmp mv /etc/ssh/tmp /etc/ssh/sshd_config rm /etc/ssh/tmp