Fix sshd can't load key log spam

Closes [6143](https://redmine.pfsense.org/issues/6143)
This commit is contained in:
Jose Luis Duran 2016-04-15 22:29:02 -03:00
parent d1db3f3661
commit fff3fe89dc

View File

@ -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";