openssh-server: generate ECDSA key, add service by default.

This commit is contained in:
Juan RP 2011-07-19 16:17:13 +02:00
parent 5f8e039c28
commit f109e37daf
2 changed files with 7 additions and 2 deletions

View file

@ -28,6 +28,10 @@ start_pre()
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
eend $? || return 1
fi
if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
ebegin "Generating ECDSA Hostkey"
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
eend $? || return 1
fi
$command -t
}

View file

@ -5,9 +5,10 @@ long_desc="${long_desc}
This package contains the ${pkgname} server files."
revision=1
keep_empty_dirs=yes
conf_files="/etc/ssh/sshd_config /etc/pam.d/sshd"
openrc_services="sshd default false"
openrc_services="sshd default true"
Add_dependency run glibc
Add_dependency run zlib