From pavalos@theshell.com  Thu Jul  4 19:56:27 2002
Return-Path: <pavalos@theshell.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BC85437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Jul 2002 19:56:27 -0700 (PDT)
Received: from theshell.com (arsenic.theshell.com [63.236.138.5])
	by mx1.FreeBSD.org (Postfix) with SMTP id 52C3E43E31
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Jul 2002 19:56:27 -0700 (PDT)
	(envelope-from pavalos@theshell.com)
Received: (qmail 682 invoked from network); 5 Jul 2002 02:56:26 -0000
Received: from oxygen.theshell.com (pavalos@63.236.138.8)
  by arsenic.theshell.com with SMTP; 5 Jul 2002 02:56:26 -0000
Received: (from pavalos@localhost)
	by oxygen.theshell.com (8.12.5/8.12.5) id g652uQlW000388;
	Thu, 4 Jul 2002 19:56:26 -0700 (PDT)
	(envelope-from pavalos)
Message-Id: <200207050256.g652uQlW000388@oxygen.theshell.com>
Date: Thu, 4 Jul 2002 19:56:26 -0700 (PDT)
From: Peter Avalos <pavalos@theshell.com>
Reply-To: Peter Avalos <pavalos@theshell.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] ssh-keygen from etc/rc.network
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40208
>Category:       misc
>Synopsis:       [PATCH] ssh-keygen from etc/rc.network
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 04 20:00:04 PDT 2002
>Closed-Date:    Fri Jul 05 10:38:29 PDT 2002
>Last-Modified:  Fri Jul 05 10:38:29 PDT 2002
>Originator:     Peter Avalos
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD oxygen.theshell.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jul 4 18:22:36 PDT 2002 root@oxygen.theshell.com:/usr/obj/usr/src/sys/OXYGEN i386


	
>Description:
I'm guessing that ssh-keygen changed with the latest import of OpenSSH.
This comes up with a Independence Day checkout of RELENG_4 on boot:

Starting final network daemons:
 nfsiod
 NFS access cache time=2
 rwhod
 creating ssh RSA host key
You must specify a key type (-t).
Usage: ssh-keygen [options]
Options:
  -b bits     Number of bits in the key to create.
  -c          Change comment in private and public key files.
  -e          Convert OpenSSH to IETF SECSH key file.
  -f filename Filename of the key file.
  -i          Convert IETF SECSH to OpenSSH key file.
  -l          Show fingerprint of key file.
  -p          Change passphrase of private key file.
  -q          Quiet.
  -y          Read private key file and print public key.
  -t type     Specify type of key to create.
  -B          Show bubblebabble digest of key file.
  -C comment  Provide new comment.
  -N phrase   Provide new passphrase.
  -P phrase   Provide old passphrase.
 creating ssh DSA host key
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
>How-To-Repeat:
	
>Fix:

Index: rc.network
===================================================================
RCS file: /cvsroot/fbsd/src/etc/rc.network,v
retrieving revision 1.74.2.39
diff -u -r1.74.2.39 rc.network
--- rc.network	24 Apr 2002 18:51:42 -0000	1.74.2.39
+++ rc.network	5 Jul 2002 02:49:06 -0000
@@ -806,11 +806,11 @@
 	[Yy][Ee][Ss])
 		if [ ! -f /etc/ssh/ssh_host_key ]; then
 			echo ' creating ssh RSA host key';
-			/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
+			/usr/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh/ssh_host_key
 		fi
 		if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
 			echo ' creating ssh DSA host key';
-			/usr/bin/ssh-keygen -d -N "" -f /etc/ssh/ssh_host_dsa_key
+			/usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
 		fi
 		;;
 	esac
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Jul 5 10:37:22 PDT 2002 
State-Changed-Why:  
Fixed in src/etc/rc.network,v 1.74.2.40. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Jul 5 10:37:22 PDT 2002 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=40208 
>Unformatted:
