X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=sshd-keygen;h=a09061427521f89b8522f48a7a7af92800395e8b;hb=be127028d17a22eee12f6025f166ccf1a0072183;hp=da3534b4ad5062502116dfe6da92e4957d3bd085;hpb=abb10822a8e67c3e7e6ab3b840bf8244784fe180;p=packages%2Fopenssh.git diff --git a/sshd-keygen b/sshd-keygen old mode 100644 new mode 100755 index da3534b..a090614 --- a/sshd-keygen +++ b/sshd-keygen @@ -11,11 +11,11 @@ ssh_gen_key() { /usr/bin/ssh-keygen -t $type -f $keyfile -N '' >&2 chmod 600 $keyfile - [ -x /sbin/restorecon ] && /sbin/restorecon $keyfile + [ ! -x /sbin/restorecon ] || /sbin/restorecon $keyfile } # generate new keys with empty passwords if they do not exist +ssh_gen_key ed25519 /etc/ssh/ssh_host_ed25519_key +ssh_gen_key ecdsa /etc/ssh/ssh_host_ecdsa_key ssh_gen_key rsa /etc/ssh/ssh_host_rsa_key ssh_gen_key dsa /etc/ssh/ssh_host_dsa_key -ssh_gen_key ecdsa /etc/ssh/ssh_host_ecdsa_key -ssh_gen_key ed25519 /etc/ssh/ssh_host_ed25519_key