From: Marcin Krol Date: Thu, 6 Feb 2014 09:21:59 +0000 (+0000) Subject: - generate ed25519 key too X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=47bfb2a8235e3b7afe1230252af107a28ab679c9;p=packages%2Fopenssh.git - generate ed25519 key too --- 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() {