openssh: generate ed25519 key

This commit is contained in:
Fredrik Rinnestam 2014-02-01 15:06:20 +01:00
parent 83642bf7d9
commit 2e1c941714
3 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,2 @@
a084e7272b8cbd25afe0f5dce4802fef openssh-6.5p1.tar.gz
ce4ef44c7d80f6451170e6fe5c07d3f4 sshd
569e2757f9a1fcee7869c986b4c90fdd sshd

View File

@ -5,7 +5,7 @@
name=openssh
version=6.5p1
release=1
release=2
source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
build() {

View File

@ -17,6 +17,9 @@ start)
if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
/usr/bin/ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key > /dev/null
fi
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
/usr/bin/ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key > /dev/null
fi
/usr/sbin/sshd
;;
stop)