File gsisshd-gen-keys-start of Package gsi-openssh

#!/bin/bash

       if ! grep -q '^[[:space:]]*HostKey[[:space:]]' /etc/gsissh/sshd_config; then
                if ! test -f /etc/gsissh/ssh_host_key ; then
                    echo Generating /etc/gsissh/ssh_host_key.
                    gsissh-keygen -t rsa1 -b 2048 -f /etc/gsissh/ssh_host_key -N ''
                fi
                if ! test -f /etc/gsissh/ssh_host_dsa_key ; then
                    echo Generating /etc/gsissh/ssh_host_dsa_key.
                    gsissh-keygen -t dsa -f /etc/gsissh/ssh_host_dsa_key -N ''
                fi
                if ! test -f /etc/gsissh/ssh_host_rsa_key ; then
                    echo Generating /etc/gsissh/ssh_host_rsa_key.
                    gsissh-keygen -t rsa -b 2048 -f /etc/gsissh/ssh_host_rsa_key -N ''
                fi
                if ! test -f /etc/gsissh/ssh_host_ecdsa_key ; then
                    echo Generating /etc/gsissh/ssh_host_ecdsa_key.
                    gsissh-keygen -t ecdsa -b 256 -f /etc/gsissh/ssh_host_ecdsa_key -N ''
                fi
        fi