From fff3fe89dcdceb0a424ea2e706501c8c8c728e28 Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Fri, 15 Apr 2016 22:29:02 -0300 Subject: Fix sshd can't load key log spam Closes [6143](https://redmine.pfsense.org/issues/6143) --- src/etc/sshd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/etc/sshd b/src/etc/sshd index 044cc2b..b893c91 100755 --- a/src/etc/sshd +++ b/src/etc/sshd @@ -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"; -- cgit v1.1