mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Disable PAM when using only key-based authentication, otherwise keyboard-interactive fails. Fixes #6963
This commit is contained in:
parent
6be782ed7c
commit
ec64b0a8a6
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user