]> git.pld-linux.org Git - packages/openssh.git/blobdiff - sshd-keygen
- added ldns patch (fixes ldns detection) and bcond
[packages/openssh.git] / sshd-keygen
old mode 100644 (file)
new mode 100755 (executable)
index c6205e6..a090614
@@ -11,12 +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 rsa1 /etc/ssh/ssh_host_key
+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
This page took 0.025167 seconds and 4 git commands to generate.