dropbear: prefer rsa key, dss keys are obsoleted in recent openssl
This commit is contained in:
parent
a09c172d6e
commit
385e26f04d
@ -6,14 +6,17 @@ if test "$DROPBEAR" != "yes"; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
mkdir -p /etc/dropbear
|
||||||
|
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 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
|
if test -r /etc/sysconfig/dropbear_dss_host_key; then
|
||||||
cp /etc/sysconfig/dropbear_dss_host_key /etc/dropbear/dropbear_dss_host_key
|
cp /etc/sysconfig/dropbear_dss_host_key /etc/dropbear/dropbear_dss_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
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
export HOME=/root
|
export HOME=/root
|
||||||
if test -r /etc/sysconfig/authorized_keys ; then
|
if test -r /etc/sysconfig/authorized_keys ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user