From 26814679aa9564a247ae534a3071fefbfeb340a4 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 27 Sep 2016 09:39:31 +0200 Subject: [PATCH] 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... --- src/etc/rc.sshd | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/etc/rc.sshd b/src/etc/rc.sshd index bbb32a462..afb63b952 100755 --- a/src/etc/rc.sshd +++ b/src/etc/rc.sshd @@ -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);