summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-06-06 08:04:29 +0200
committerDarren Tucker <dtucker@dtucker.net>2018-06-06 08:05:44 +0200
commit7703ae5f5d42eb302ded51705166ff6e19c92892 (patch)
tree58ed361b9d30dbdbbec38a6f376f8ee8a4a0a144 /contrib
parentupstream: add missing punctuation after %i in ssh_config.5, and (diff)
downloadopenssh-7703ae5f5d42eb302ded51705166ff6e19c92892.tar.xz
openssh-7703ae5f5d42eb302ded51705166ff6e19c92892.zip
Use ssh-keygen -A to generate missing host keys.
Instead of testing for each specific key type, use ssh-keygen -A to generate any missing host key types.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/aix/buildbff.sh16
1 files changed, 1 insertions, 15 deletions
diff --git a/contrib/aix/buildbff.sh b/contrib/aix/buildbff.sh
index 00b384dc7..55113d9d3 100755
--- a/contrib/aix/buildbff.sh
+++ b/contrib/aix/buildbff.sh
@@ -240,21 +240,7 @@ echo
# Generate keys unless they already exist
echo Creating host keys if required.
-if [ -f "$sysconfdir/ssh_host_key" ] ; then
- echo "$sysconfdir/ssh_host_key already exists, skipping."
-else
- $bindir/ssh-keygen -t rsa1 -f $sysconfdir/ssh_host_key -N ""
-fi
-if [ -f $sysconfdir/ssh_host_dsa_key ] ; then
- echo "$sysconfdir/ssh_host_dsa_key already exists, skipping."
-else
- $bindir/ssh-keygen -t dsa -f $sysconfdir/ssh_host_dsa_key -N ""
-fi
-if [ -f $sysconfdir/ssh_host_rsa_key ] ; then
- echo "$sysconfdir/ssh_host_rsa_key already exists, skipping."
-else
- $bindir/ssh-keygen -t rsa -f $sysconfdir/ssh_host_rsa_key -N ""
-fi
+$bindir/ssh-keygen -A
echo
# Set startup command depending on SRC support