summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
authorKim <UnicronNL@users.noreply.github.com>2017-04-27 18:21:31 +0200
committerGitHub <noreply@github.com>2017-04-27 18:21:31 +0200
commit84a94fd063c27c60f1cdd8902b549d375c02ceb7 (patch)
tree6068caa795a43433e3942d0b5499e78ecb71fcaf /scripts/rl-system.init
parent5ffc3d04434de0e463393c8e6d624072990c6a7e (diff)
downloadvyatta-cfg-system-84a94fd063c27c60f1cdd8902b549d375c02ceb7.tar.gz
vyatta-cfg-system-84a94fd063c27c60f1cdd8902b549d375c02ceb7.zip
generate ssh_host_ed25519_key if it is missing
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init4
1 files changed, 4 insertions, 0 deletions
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 ()