From 697b566015261102d951410e21659d23901e2a1a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 12 Jan 2016 10:35:42 +0100 Subject: [PATCH] No longer generate RSA1 SSH hostkey [Closes: issue2158] Otherwise executing ssh-keygen for rsa1 fails with "failed: unknown or unsupported key type" with recent openssh versions (like Debian unstable's 7.1p1-6 as nowadays) and sshd doesn't start up. Thanks: Andras Korn for the bugreport --- etc/init.d/ssh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/etc/init.d/ssh b/etc/init.d/ssh index 6099e68..8554fc4 100755 --- a/etc/init.d/ssh +++ b/etc/init.d/ssh @@ -14,7 +14,6 @@ # Configurable options: KEYGEN=/usr/bin/ssh-keygen -RSA1_KEY=/etc/ssh/ssh_host_key RSA_KEY=/etc/ssh/ssh_host_rsa_key DSA_KEY=/etc/ssh/ssh_host_dsa_key ECDSA_KEY=/etc/ssh/ssh_host_ecdsa_key @@ -91,11 +90,6 @@ check_config() { generate_ssh_keys() { - if ! test -f $RSA1_KEY ; then - log_action_msg "Generating SSH1 RSA host key..." - $KEYGEN -t rsa1 -f $RSA1_KEY -C '' -N '' || exit 1 - fi - if ! test -f $RSA_KEY ; then log_action_msg "Generating SSH2 RSA host key..." $KEYGEN -t rsa -f $RSA_KEY -C '' -N '' || exit 1 -- 2.1.4