summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-05-30 20:43:29 +0000
committerBrian Feldman <green@FreeBSD.org>2000-05-30 20:43:29 +0000
commitfb5ef7a53976b4542478585c0410b4bc2c9f129c (patch)
tree32533596c7c490ad98e86ea88ea91fbbd942780a /security
parentAdd unroff-html-me.1 to MAN1. (diff)
Also generate the DSA key from a package install.
Submitted by: Dmitry Grigorovich <odip@bionet.nsc.ru>
Notes
Notes: svn path=/head/; revision=28995
Diffstat (limited to 'security')
-rw-r--r--security/openssh/pkg-plist3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/openssh/pkg-plist b/security/openssh/pkg-plist
index 7b7bd3ce014a..bf5e5195866f 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