diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd index 038f817ebe43..2c139e11adc0 100755 --- a/etc/rc.d/sshd +++ b/etc/rc.d/sshd @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: sshd,v 1.29 2018/05/26 19:18:11 riastradh Exp $ +# $NetBSD: sshd,v 1.30 2019/10/23 14:45:38 christos Exp $ # # PROVIDE: sshd @@ -20,7 +20,7 @@ sshd_keygen() ( keygen="/usr/bin/ssh-keygen" umask 022 - while read type bits filename version name; do + while read type bits filename; do f="/etc/ssh/$filename" if [ -f "$f" ]; then continue @@ -33,10 +33,10 @@ sshd_keygen() "${keygen}" -t "${type}" ${bitarg} -f "${f}" -N '' -q && \ printf "ssh-keygen: " && "${keygen}" -f "${f}" -l done << _EOF -dsa 1024 ssh_host_dsa_key 2 DSA -ecdsa 521 ssh_host_ecdsa_key 1 ECDSA -ed25519 -1 ssh_host_ed25519_key 1 ED25519 -rsa 0 ssh_host_rsa_key 2 RSA +dsa 1024 ssh_host_dsa_key +ecdsa 521 ssh_host_ecdsa_key +ed25519 -1 ssh_host_ed25519_key +rsa 0 ssh_host_rsa_key _EOF ) }