]> git.pld-linux.org Git - packages/openssh.git/blobdiff - sshd-keygen
- rel 2; generate ed25519 server key
[packages/openssh.git] / sshd-keygen
index 94ac509de8c4b738cb199f3b665c8914db154fca..1f2b320710d7b48238878e0aa7c7044ca983468f 100644 (file)
@@ -24,5 +24,9 @@ if [ ! -f /etc/ssh/ssh_host_ecdsa_key -o ! -s /etc/ssh/ssh_host_ecdsa_key ]; the
        chmod 600 /etc/ssh/ssh_host_ecdsa_key
        [ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ecdsa_key
 fi # ecdsa
-
+if [ ! -f /etc/ssh/ssh_host_ed25519_key -o ! -s /etc/ssh/ssh_host_ed25519_key ]; then
+       /usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >&2
+       chmod 600 /etc/ssh/ssh_host_ed25519_key
+       [ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ed25519_key
+fi # ed25519
 exit 0
This page took 0.041378 seconds and 4 git commands to generate.