diff --git a/src/etc/rc.sshd b/src/etc/rc.sshd index afb63b952..bbb32a462 100755 --- a/src/etc/rc.sshd +++ b/src/etc/rc.sshd @@ -105,6 +105,9 @@ if (isset($sshcfg['passwordauth'])) { $sshconf .= "ChallengeResponseAuthentication no\n"; $sshconf .= "PasswordAuthentication no\n"; } +foreach ($keys as $key) { + $sshconf .= "HostKey {$etc_ssh}/{$key}\n"; +} /* Write the new sshd config file */ file_put_contents("{$etc_ssh}/sshd_config", $sshconf);