mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix sshd can't load key log spam
Closes [6143](https://redmine.pfsense.org/issues/6143)
This commit is contained in:
parent
d1db3f3661
commit
fff3fe89dc
@ -105,6 +105,9 @@
|
||||
$sshconf .= "ClientAliveInterval 30\n";
|
||||
$sshconf .= "UseDNS no\n";
|
||||
$sshconf .= "X11Forwarding no\n";
|
||||
foreach ($keys as $key) {
|
||||
$sshconf .= "HostKey {$sshConfigDir}/ssh_host_{$key['suffix']}key\n";
|
||||
}
|
||||
if (isset($config['system']['ssh']['sshdkeyonly'])) {
|
||||
$sshconf .= "# Login via Key only\n";
|
||||
$sshconf .= "PasswordAuthentication no\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user