From 47bfb2a8235e3b7afe1230252af107a28ab679c9 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 6 Feb 2014 09:21:59 +0000 Subject: [PATCH] - generate ed25519 key too --- opensshd.init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opensshd.init b/opensshd.init index ab59061..a00a9da 100755 --- a/opensshd.init +++ b/opensshd.init @@ -67,6 +67,11 @@ ssh_gen_keys() { 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 } start() { -- 2.52.0