From 1353fa8e2d4781ec32b1398b21110d3707bed433 Mon Sep 17 00:00:00 2001 From: green Date: Tue, 30 May 2000 20:43:29 +0000 Subject: Also generate the DSA key from a package install. Submitted by: Dmitry Grigorovich --- security/openssh/pkg-plist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/openssh/pkg-plist b/security/openssh/pkg-plist index 7b7bd3c..bf5e519 100644 --- a/security/openssh/pkg-plist +++ b/security/openssh/pkg-plist @@ -15,5 +15,6 @@ man/man1/ssh-keygen.1.gz man/man1/ssh.1.gz man/man8/sshd.8.gz sbin/sshd -@exec if [ ! -f %D/etc/ssh_host_key ]; then echo ">> Generating a secret host key."; %D/bin/ssh-keygen -N "" -f %D/etc/ssh_host_key; fi +@exec if [ ! -f %D/etc/ssh_host_key ]; then echo ">> Generating a secret RSA host key."; %D/bin/ssh-keygen -N "" -f %D/etc/ssh_host_key; fi +@exec if [ ! -f %D/etc/ssh_host_dsa_key ]; then echo ">> Generating a secret DSA host key."; %D/bin/ssh-keygen -d -N "" -f %D/etc/ssh_host_dsa_key; fi @exec if [ ! -x %D/etc/rc.d/sshd.sh ]; then echo "#!/bin/sh" > %D/etc/rc.d/sshd.sh && exec echo "[ -x %D/sbin/sshd ] && %D/sbin/sshd && echo -n ' sshd'" >> %D/etc/rc.d/sshd.sh && exec chmod 0555 %D/etc/rc.d/sshd.sh; fi -- cgit v1.1