diff options
-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"; |