Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2002 19:56:26 -0700 (PDT)
From:      Peter Avalos <pavalos@theshell.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/40208: [PATCH] ssh-keygen from etc/rc.network
Message-ID:  <200207050256.g652uQlW000388@oxygen.theshell.com>

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

>Number:         40208
>Category:       misc
>Synopsis:       [PATCH] ssh-keygen from etc/rc.network
>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:   Thu Jul 04 20:00:04 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>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?200207050256.g652uQlW000388>