Revert "(sshd) add HostKey to sshd_config to force available hostkeys. closes https://github.com/opnsense/core/issues/1200"

This reverts commit 4e83616c7ec3d3033b72d28767f0edfae93dc6f6.

We need more input from the reporter, nobody has ran into this error
as far as I could see, testing was ok, and when OpenSSH switches
to the next version this will automatically align itself...
This commit is contained in:
Franco Fichtner 2016-09-27 09:39:31 +02:00
parent c9e4013094
commit 26814679aa

View File

@ -105,9 +105,6 @@ 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);