blob: 35a8b049f93573f0b525785bc374b314dc0b2432 [file] [log] [blame]
#!/bin/bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
## Section: 5.2.16 Ensure SSH Idle Timeout Interval is configured ##
sed -i 's/^ClientAliveInterval .*$/ClientAliveInterval 300/' \
/etc/ssh/sshd_config
echo "ClientAliveCountMax 0" >> /etc/ssh/sshd_config