summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-11-25 15:08:29 -0500
committerjim-p <jimp@pfsense.org>2016-11-25 15:17:31 -0500
commit8505ccf025b444620366803d6138f283e5a611b7 (patch)
treeb7d42089818f77578828a0e2aa251dfa5a4d744e /src
parentc1d124bea6193e1e6d41a9f2c7e9044de4d317a1 (diff)
downloadpfsense-8505ccf025b444620366803d6138f283e5a611b7.zip
pfsense-8505ccf025b444620366803d6138f283e5a611b7.tar.gz
Disable PAM when using only key-based authentication, otherwise keyboard-interactive fails. Fixes #6963
Diffstat (limited to 'src')
-rwxr-xr-xsrc/etc/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/sshd b/src/etc/sshd
index be410a7..23351d8 100755
--- a/src/etc/sshd
+++ b/src/etc/sshd
@@ -139,6 +139,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";
@@ -146,7 +147,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