Skip to content

Commit 5b80b03

Browse files
committed
More SSHD configs
1 parent ee301db commit 5b80b03

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/configure-system.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,9 +1356,12 @@ if does_bin_exist 'sshd'; then
13561356
SSHD_CONFIG_FILE="${ROOT_ETC}/ssh/sshd_config"
13571357

13581358
set_config_values --separator ' ' "${SSHD_CONFIG_FILE}" \
1359-
'LoginGraceTime' 30 \
1360-
'MaxAuthTries' 2 \
1361-
'MaxSessions' 5
1359+
'ChallengeResponseAuthentication' no \
1360+
'LoginGraceTime' 30 \
1361+
'MaxAuthTries' 2 \
1362+
'MaxSessions' 5 \
1363+
'PermitEmptyPasswords' 'no' \
1364+
'UseDNS' 'no'
13621365

13631366
if [ "$USER" != "root" ]; then
13641367
set_config_value --separator ' ' "${SSHD_CONFIG_FILE}" 'AllowUsers' "${USER}"

0 commit comments

Comments
 (0)