Commit 26814679 authored by Franco Fichtner's avatar Franco Fichtner

Revert "(sshd) add HostKey to sshd_config to force available hostkeys. closes...

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

This reverts commit 4e83616c.

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...
parent c9e40130
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment