summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/etc/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/sshd b/src/etc/sshd
index 7c40f2d..64ab8d7 100755
--- a/src/etc/sshd
+++ b/src/etc/sshd
@@ -89,6 +89,7 @@ if (isset($config['system']['ssh']['sshdkeyonly'])) {
$sshconf .= "ChallengeResponseAuthentication no\n";
$sshconf .= "PasswordAuthentication no\n";
$sshconf .= "PubkeyAuthentication yes\n";
+ $sshconf .= "UsePAM no\n";
} else {
$sshconf .= "# Login via Key and Password\n";
$sshconf .= "ChallengeResponseAuthentication yes\n";
@@ -96,7 +97,6 @@ if (isset($config['system']['ssh']['sshdkeyonly'])) {
$sshconf .= "PubkeyAuthentication yes\n";
}
$sshconf .= "UseDNS no\n";
-$sshconf .= "UsePAM no\n";
$sshconf .= "LoginGraceTime 30s\n";
/* Hide FreeBSD version */
$sshconf .= "VersionAddendum none\n";
OpenPOWER on IntegriCloud