From 37bbce243a47a80f3097176a740877cc6fa214da Mon Sep 17 00:00:00 2001 From: Paul Traina Date: Tue, 1 Apr 1997 03:34:25 +0000 Subject: Generate host key in /etc to match the port --- security/ssh/pkg-plist | 4 ++-- security/ssh2/pkg-plist | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/security/ssh/pkg-plist b/security/ssh/pkg-plist index 29cc5a46d340..10434a6426c4 100644 --- a/security/ssh/pkg-plist +++ b/security/ssh/pkg-plist @@ -20,5 +20,5 @@ man/man1/ssh.1.gz @unexec rm -f %B/slogin.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 -@unexec rm -f %D/etc/ssh_host_key +@exec if [ ! -f /etc/ssh_host_key ]; then echo "Generating a secret host key.." ; %D/bin/ssh-keygen -N "" -f /etc/ssh_host_key; fi +@unexec rm -f /etc/ssh_host_key diff --git a/security/ssh2/pkg-plist b/security/ssh2/pkg-plist index 29cc5a46d340..10434a6426c4 100644 --- a/security/ssh2/pkg-plist +++ b/security/ssh2/pkg-plist @@ -20,5 +20,5 @@ man/man1/ssh.1.gz @unexec rm -f %B/slogin.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 -@unexec rm -f %D/etc/ssh_host_key +@exec if [ ! -f /etc/ssh_host_key ]; then echo "Generating a secret host key.." ; %D/bin/ssh-keygen -N "" -f /etc/ssh_host_key; fi +@unexec rm -f /etc/ssh_host_key -- cgit v1.2.3