diff options
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-x | opensshd.init.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opensshd.init.in b/opensshd.init.in index d0aff7794..0db60caa7 100755 --- a/opensshd.init.in +++ b/opensshd.init.in | |||
@@ -20,6 +20,7 @@ SSH_KEYGEN=$prefix/bin/ssh-keygen | |||
20 | HOST_KEY_RSA1=$sysconfdir/ssh_host_key | 20 | HOST_KEY_RSA1=$sysconfdir/ssh_host_key |
21 | HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key | 21 | HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key |
22 | HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key | 22 | HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key |
23 | @COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key | ||
23 | 24 | ||
24 | 25 | ||
25 | checkkeys() { | 26 | checkkeys() { |
@@ -32,6 +33,9 @@ checkkeys() { | |||
32 | if [ ! -f $HOST_KEY_RSA ]; then | 33 | if [ ! -f $HOST_KEY_RSA ]; then |
33 | ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N "" | 34 | ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N "" |
34 | fi | 35 | fi |
36 | @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@ fi | ||
35 | } | 39 | } |
36 | 40 | ||
37 | stop_service() { | 41 | stop_service() { |