openssh: generate ed25519 key
This commit is contained in:
parent
83642bf7d9
commit
2e1c941714
@ -1,2 +1,2 @@
|
||||
a084e7272b8cbd25afe0f5dce4802fef openssh-6.5p1.tar.gz
|
||||
ce4ef44c7d80f6451170e6fe5c07d3f4 sshd
|
||||
569e2757f9a1fcee7869c986b4c90fdd sshd
|
||||
|
@ -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() {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user