[packages/openssh] - rel 2; generate ed25519 server key

arekm arekm at pld-linux.org
Sun Mar 2 08:35:49 CET 2014


commit 3eb72854a39c648838e1a459cadb017f76dc2fc7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 2 08:35:45 2014 +0100

    - rel 2; generate ed25519 server key

 openssh.spec  | 2 +-
 opensshd.init | 5 +++++
 sshd-keygen   | 6 +++++-
 3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/openssh.spec b/openssh.spec
index ab19b5a..efda783 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -34,7 +34,7 @@ Summary(ru.UTF-8):	OpenSSH - свободная реализация прото
 Summary(uk.UTF-8):	OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
 Name:		openssh
 Version:	6.5p1
-Release:	1
+Release:	2
 Epoch:		2
 License:	BSD
 Group:		Applications/Networking
diff --git a/opensshd.init b/opensshd.init
index ab59061..a00a9da 100755
--- a/opensshd.init
+++ b/opensshd.init
@@ -67,6 +67,11 @@ ssh_gen_keys() {
 		chmod 600 /etc/ssh/ssh_host_ecdsa_key
 		[ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ecdsa_key
 	fi # ecdsa
+	if [ ! -f /etc/ssh/ssh_host_ed25519_key -o ! -s /etc/ssh/ssh_host_ed25519_key ]; then
+		/usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >&2
+		chmod 600 /etc/ssh/ssh_host_ed25519_key
+		[ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ed25519_key
+	fi # ed25519
 }
 
 start() {
diff --git a/sshd-keygen b/sshd-keygen
index 94ac509..1f2b320 100644
--- a/sshd-keygen
+++ b/sshd-keygen
@@ -24,5 +24,9 @@ if [ ! -f /etc/ssh/ssh_host_ecdsa_key -o ! -s /etc/ssh/ssh_host_ecdsa_key ]; the
 	chmod 600 /etc/ssh/ssh_host_ecdsa_key
 	[ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ecdsa_key
 fi # ecdsa
-
+if [ ! -f /etc/ssh/ssh_host_ed25519_key -o ! -s /etc/ssh/ssh_host_ed25519_key ]; then
+	/usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >&2
+	chmod 600 /etc/ssh/ssh_host_ed25519_key
+	[ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ed25519_key
+fi # ed25519
 exit 0
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssh.git/commitdiff/3eb72854a39c648838e1a459cadb017f76dc2fc7



More information about the pld-cvs-commit mailing list