diff options
author | Tim Rice <tim@multitalents.net> | 2014-03-14 12:45:01 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2014-03-14 12:45:01 -0700 |
commit | 9c36698ca2f554ec221dc7ef29c7a89e97c88705 (patch) | |
tree | a571f329bfb6a43c650c4f8a71edf7237aa44813 /opensshd.init.in | |
parent | 19158b2447e35838d69b2b735fb640d1e86061ea (diff) | |
download | openssh-git-9c36698ca2f554ec221dc7ef29c7a89e97c88705.tar.gz |
20140314
- (tim) [opensshd.init.in] Add support for ed25519
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 0db60caa..517345bf 100755 --- a/opensshd.init.in +++ b/opensshd.init.in @@ -21,6 +21,7 @@ HOST_KEY_RSA1=$sysconfdir/ssh_host_key HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key @COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key +HOST_KEY_ED25519=$sysconfdir/ssh_host_ed25519_key checkkeys() { @@ -36,6 +37,9 @@ checkkeys() { @COMMENT_OUT_ECC@ if [ ! -f $HOST_KEY_ECDSA ]; then @COMMENT_OUT_ECC@ ${SSH_KEYGEN} -t ecdsa -f ${HOST_KEY_ECDSA} -N "" @COMMENT_OUT_ECC@ fi + if [ ! -f $HOST_KEY_ED25519 ]; then + ${SSH_KEYGEN} -t ed25519 -f ${HOST_KEY_ED25519} -N "" + fi } stop_service() { |