From 385e26f04d39772cb24c70a357f92d38f1504824 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 20 Feb 2016 21:09:15 +0100 Subject: [PATCH] dropbear: prefer rsa key, dss keys are obsoleted in recent openssl --- fs-add/etc/init.d/dropbear | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fs-add/etc/init.d/dropbear b/fs-add/etc/init.d/dropbear index ce8faa47..c9bee1f2 100755 --- a/fs-add/etc/init.d/dropbear +++ b/fs-add/etc/init.d/dropbear @@ -6,15 +6,18 @@ if test "$DROPBEAR" != "yes"; then exit 0 fi -if ! test -r /etc/dropbear/dropbear_dss_host_key; then +if ! test -r /etc/dropbear/dropbear_rsa_host_key; then mkdir -p /etc/dropbear - if test -r /etc/sysconfig/dropbear_dss_host_key; then - cp /etc/sysconfig/dropbear_dss_host_key /etc/dropbear/dropbear_dss_host_key + if test -r /etc/sysconfig/dropbear_rsa_host_key; then + cp /etc/sysconfig/dropbear_rsa_host_key /etc/dropbear/dropbear_rsa_host_key else - dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key - cp /etc/dropbear/dropbear_dss_host_key /etc/sysconfig/dropbear_dss_host_key + dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key + cp /etc/dropbear/dropbear_rsa_host_key /etc/sysconfig/dropbear_rsa_host_key fi fi +if test -r /etc/sysconfig/dropbear_dss_host_key; then + cp /etc/sysconfig/dropbear_dss_host_key /etc/dropbear/dropbear_dss_host_key +fi export HOME=/root if test -r /etc/sysconfig/authorized_keys ; then mkdir -p $HOME/.ssh