Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  8 Apr 2002 21:18:23 +0200 (CEST)
From:      Anders Nordby <anders@fix.no>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/36894: Generate SSH2 RSA host key
Message-ID:  <20020408191823.D048F2031E@totem.fix.no>

next in thread | raw e-mail | index | archive | help

>Number:         36894
>Category:       conf
>Synopsis:       Generate SSH2 RSA host key
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 08 12:20:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Anders Nordby
>Release:        FreeBSD current 5.0-20020407-CURRENT
>Organization:
Fluxpod Information eXchange
>Environment:

FreeBSD current 5.0-20020407-CURRENT

>Description:

sshd complains when started on boot: Could not load host key:
/etc/ssh/ssh_host_rsa_key

>How-To-Repeat:

# echo 'sshd_enable="YES"' >>/etc/rc.conf

Reboot system, watch output while "Starting standard daemons" runs.

>Fix:

Index: rc.network
===================================================================
RCS file: /home/ncvs/src/etc/rc.network,v
retrieving revision 1.132
diff -u -r1.132 rc.network
--- rc.network	1 Apr 2002 18:33:45 -0000	1.132
+++ rc.network	8 Apr 2002 19:12:55 -0000
@@ -853,9 +853,14 @@
 	[Yy][Ee][Ss])
 		if [ -x /usr/bin/ssh-keygen ]; then
 			if [ ! -f /etc/ssh/ssh_host_key ]; then
-				echo ' creating ssh RSA host key';
+				echo ' creating ssh RSA1 host key';
 				/usr/bin/ssh-keygen -trsa1 -N "" \
 					-f /etc/ssh/ssh_host_key
+			fi
+			if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
+				echo ' creating ssh RSA host key';
+				/usr/bin/ssh-keygen -trsa -N "" \
+					-f /etc/ssh/ssh_host_rsa_key
 			fi
 			if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
 				echo ' creating ssh DSA host key';
>Release-Note:
>Audit-Trail:
>Unformatted:

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?20020408191823.D048F2031E>