Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a98b4207e6 |
@@ -385,6 +385,11 @@ set_sshd_option ChallengeResponseAuthentication no
|
||||
set_sshd_option PubkeyAuthentication yes
|
||||
set_sshd_option UsePAM no
|
||||
|
||||
# Debian accepts LANG/LC_* from the client; a PC locale that is not generated
|
||||
# here (e.g. en_GB.UTF-8) gives setlocale warnings on every login. The server
|
||||
# uses its own en_US.UTF-8 (generated below) instead.
|
||||
sed -i 's/^[[:space:]]*AcceptEnv[[:space:]]/#&/' "${SSHD}"
|
||||
|
||||
if [[ "${KEEP_ROOT}" == "yes" ]]; then
|
||||
set_sshd_option PermitRootLogin prohibit-password
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user