summaryrefslogtreecommitdiffstats
path: root/src/etc/sshd
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@users.noreply.github.com>2016-04-15 22:29:02 -0300
committerJose Luis Duran <jlduran@users.noreply.github.com>2016-04-15 22:29:02 -0300
commitfff3fe89dcdceb0a424ea2e706501c8c8c728e28 (patch)
treead43cfd5451d5d4df04dc9deec6f687025066a79 /src/etc/sshd
parentd1db3f366180e8df8042dbeb92fa12e5a661d23c (diff)
downloadpfsense-fff3fe89dcdceb0a424ea2e706501c8c8c728e28.zip
pfsense-fff3fe89dcdceb0a424ea2e706501c8c8c728e28.tar.gz
Fix sshd can't load key log spam
Closes [6143](https://redmine.pfsense.org/issues/6143)
Diffstat (limited to 'src/etc/sshd')
-rwxr-xr-xsrc/etc/sshd3
1 files changed, 3 insertions, 0 deletions
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";
OpenPOWER on IntegriCloud