diff options
author | Jose Luis Duran <jlduran@users.noreply.github.com> | 2016-04-15 22:29:02 -0300 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-04-16 01:29:59 -0500 |
commit | 6bf5ed1892c4a751c3c7e7fd348f88cccc11cf36 (patch) | |
tree | 38a6d7731db7100442e21cd0d3b978373abd4c43 /src/etc/sshd | |
parent | dce5a7151e9adb81718b3638bb5af65f4b4e5f67 (diff) | |
download | pfsense-6bf5ed1892c4a751c3c7e7fd348f88cccc11cf36.zip pfsense-6bf5ed1892c4a751c3c7e7fd348f88cccc11cf36.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-x | src/etc/sshd | 3 |
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"; |