From 84a94fd063c27c60f1cdd8902b549d375c02ceb7 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 27 Apr 2017 18:21:31 +0200 Subject: generate ssh_host_ed25519_key if it is missing --- scripts/rl-system.init | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/rl-system.init b/scripts/rl-system.init index 6a2b8d25..eaf4dbd5 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -116,6 +116,10 @@ create_ssh_host_keys () { syslog "Creating ssh v1 host key." ssh-keygen -q -N '' -t rsa1 -f /etc/ssh/ssh_host_key fi; + if [ ! -f "/etc/ssh/ssh_host_ed25519_key" ]; then + syslog "Creating ssh ed25519 host key." + ssh-keygen -q -N '' -t ed25519 -f /etc/ssh/ssh_host_ed25519_key + fi; } set_ipv6_params () -- cgit v1.2.3