diff --git a/packages/network/openssh/init.d/51_sshd b/packages/network/openssh/init.d/51_sshd index abff4202df..16e255775c 100644 --- a/packages/network/openssh/init.d/51_sshd +++ b/packages/network/openssh/init.d/51_sshd @@ -31,7 +31,7 @@ SSHD="/usr/sbin/sshd" # Check for the SSH1 RSA key - if [ ! -f $RSA1_KEY ] ; then + if [ ! -s $RSA1_KEY ] ; then progress "SSH: generating SSH1 RSA key" mkdir -p /storage/.cache/ssh @@ -40,7 +40,7 @@ fi # Check for the SSH2 RSA key - if [ ! -f $RSA2_KEY ] ; then + if [ ! -s $RSA2_KEY ] ; then progress "SSH: generating SSH2 RSA key" mkdir -p /storage/.cache/ssh @@ -49,7 +49,7 @@ fi # Check for the SSH2 DSA key - if [ ! -f $DSA2_KEY ] ; then + if [ ! -s $DSA2_KEY ] ; then progress "SSH: generating SSH2 DSA key" mkdir -p /storage/.cache/ssh