mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
514 B

if any_installed "usr/bin/ssh-keygen" ; then
if [ ! -f /etc/ssh/ssh_host_key ] ; then
echo "Creating /etc/ssh/ssh_host_key"
/usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ] ; then
echo "Creating /etc/ssh/ssh_host_dsa_key"
/usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
fi
if [ ! -f /etc/ssh/ssh_host_rsa_key ] ; then
echo "Creating /etc/ssh/ssh_host_rsa_key"
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
fi
fi