summaryrefslogtreecommitdiffstats
path: root/source/n/openssh/rc.sshd
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/openssh/rc.sshd')
-rw-r--r--source/n/openssh/rc.sshd3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/n/openssh/rc.sshd b/source/n/openssh/rc.sshd
index 8b496568e..cb2dfa410 100644
--- a/source/n/openssh/rc.sshd
+++ b/source/n/openssh/rc.sshd
@@ -12,6 +12,9 @@ sshd_start() {
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
fi
+ if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
+ /usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
+ fi
/usr/sbin/sshd
}