Skip to content

Commit

Permalink
fixup: fix adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
dafyddj committed Apr 29, 2024
1 parent 6e451bb commit f6ae847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provision/main.provision
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@

echo "Configuring settings for Test Kitchen..."

echo '==> Setting `sshd` MaxSessions to default'
echo '==> Setting `sshd` `MaxSessions`'
TURNKEY_VERSION=$(cat /etc/turnkey_version)
if echo "$TURNKEY_VERSION" | grep -qE '17'; then
SSHD_CONFIG=/etc/ssh/sshd_config
else
SSHD_CONFIG=/etc/ssh/sshd_config.d/turnkey.conf
fi
sed -i '/^MaxSessions 2/s/^/# /' $SSHD_CONFIG
sed -i 's/^MaxSessions 2/MaxSessions 20/' $SSHD_CONFIG
EOF
]
}
Expand Down

0 comments on commit f6ae847

Please sign in to comment.