summaryrefslogtreecommitdiffstats
path: root/security/openssh
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-05-30 20:43:29 +0000
committergreen <green@FreeBSD.org>2000-05-30 20:43:29 +0000
commit1353fa8e2d4781ec32b1398b21110d3707bed433 (patch)
tree07ef47e8f1023bb9fedf4510db500cfa5c37b622 /security/openssh
parent476a42103db7b339b943c33e6e6fbc963de15a5a (diff)
downloadFreeBSD-ports-1353fa8e2d4781ec32b1398b21110d3707bed433.zip
FreeBSD-ports-1353fa8e2d4781ec32b1398b21110d3707bed433.tar.gz
Also generate the DSA key from a package install.
Submitted by: Dmitry Grigorovich <odip@bionet.nsc.ru>
Diffstat (limited to 'security/openssh')
-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 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
OpenPOWER on IntegriCloud