Date: Wed, 10 Apr 2002 05:20:03 -0700 (PDT) From: Joshua Goodall <joshua@roughtrade.net> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/36894: Generate SSH2 RSA host key Message-ID: <200204101220.g3ACK3f63488@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/36894; it has been noted by GNATS.
From: Joshua Goodall <joshua@roughtrade.net>
To: freebsd-gnats-submit@FreeBSD.org, anders@fix.no
Cc: des@freebsd.org
Subject: Re: conf/36894: Generate SSH2 RSA host key
Date: Wed, 10 Apr 2002 22:16:22 +1000
Previous ssh configuration, preserved in -stable, was to not include a host
RSA key. This changed with the import of OpenSSH v3.1, and the regularisation
of the sshd_config file (to contain all defaults, but largely commented out.)
With that in mind, and with a preference for preserving existing policy - I'd
suggest the diff below as an alternative.
Index: crypto/openssh/servconf.c
===================================================================
RCS file: /cvs/src/crypto/openssh/servconf.c,v
retrieving revision 1.26
diff -u -r1.26 servconf.c
--- crypto/openssh/servconf.c 26 Mar 2002 12:27:43 -0000 1.26
+++ crypto/openssh/servconf.c 10 Apr 2002 11:57:27 -0000
@@ -122,12 +122,9 @@
if (options->protocol & SSH_PROTO_1)
options->host_key_files[options->num_host_key_files++] =
_PATH_HOST_KEY_FILE;
- if (options->protocol & SSH_PROTO_2) {
- options->host_key_files[options->num_host_key_files++] =
- _PATH_HOST_RSA_KEY_FILE;
+ if (options->protocol & SSH_PROTO_2)
options->host_key_files[options->num_host_key_files++] =
_PATH_HOST_DSA_KEY_FILE;
- }
}
if (options->num_ports == 0)
options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204101220.g3ACK3f63488>
