summaryrefslogtreecommitdiff
path: root/opensshd.init.in
diff options
context:
space:
mode:
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-xopensshd.init.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/opensshd.init.in b/opensshd.init.in
index 0db60caa7..517345bfb 100755
--- a/opensshd.init.in
+++ b/opensshd.init.in
@@ -21,6 +21,7 @@ HOST_KEY_RSA1=$sysconfdir/ssh_host_key
21HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key 21HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key
22HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key 22HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key
23@COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key 23@COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key
24HOST_KEY_ED25519=$sysconfdir/ssh_host_ed25519_key
24 25
25 26
26checkkeys() { 27checkkeys() {
@@ -36,6 +37,9 @@ checkkeys() {
36@COMMENT_OUT_ECC@ if [ ! -f $HOST_KEY_ECDSA ]; then 37@COMMENT_OUT_ECC@ if [ ! -f $HOST_KEY_ECDSA ]; then
37@COMMENT_OUT_ECC@ ${SSH_KEYGEN} -t ecdsa -f ${HOST_KEY_ECDSA} -N "" 38@COMMENT_OUT_ECC@ ${SSH_KEYGEN} -t ecdsa -f ${HOST_KEY_ECDSA} -N ""
38@COMMENT_OUT_ECC@ fi 39@COMMENT_OUT_ECC@ fi
40 if [ ! -f $HOST_KEY_ED25519 ]; then
41 ${SSH_KEYGEN} -t ed25519 -f ${HOST_KEY_ED25519} -N ""
42 fi
39} 43}
40 44
41stop_service() { 45stop_service() {