summaryrefslogtreecommitdiff
path: root/recipes-connectivity
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity')
-rw-r--r--recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys b/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys
index 4af8d5c..a276b6d 100644
--- a/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys
+++ b/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys
@@ -60,7 +60,7 @@ HOST_KEYS=$(sed -n 's/^[ \t]*HostKey[ \t]\+\(.*\)/\1/p' "${sshd_config}")
[ -z "${HOST_KEYS}" ] && HOST_KEYS="$SYSCONFDIR/ssh_host_rsa_key $SYSCONFDIR/ssh_host_dsa_key $SYSCONFDIR/ssh_host_ecdsa_key $SYSCONFDIR/ssh_host_ed25519_key"
for key in ${HOST_KEYS} ; do
- [ -f $key ] && continue
+ [ -s $key ] && continue
case $key in
*_rsa_key)
echo " generating ssh RSA host key..."