types that got generated. Problem was that it didn't remove that key as one of the paths that the server looks for by default. As a consequence, your log file might fill up with messages like: 2017-06-01T15:43:07-06:00 openwrt sshd[31929]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key The patch is forunately trivial. Don't set the path for the dsa key file in the server configuration. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: Peter Wagner <tripolar@gmx.at>
13 lines
489 B
Diff
13 lines
489 B
Diff
--- a/servconf.c 2017-03-19 20:39:27.000000000 -0600
|
|
+++ b/servconf.c 2017-06-01 19:12:51.338645002 -0600
|
|
@@ -201,8 +201,10 @@
|
|
/* fill default hostkeys for protocols */
|
|
options->host_key_files[options->num_host_key_files++] =
|
|
_PATH_HOST_RSA_KEY_FILE;
|
|
+#if 0
|
|
options->host_key_files[options->num_host_key_files++] =
|
|
_PATH_HOST_DSA_KEY_FILE;
|
|
+#endif
|
|
#ifdef OPENSSL_HAS_ECC
|
|
options->host_key_files[options->num_host_key_files++] =
|
|
_PATH_HOST_ECDSA_KEY_FILE;
|