Can someone show me how to re-write the following commands for a bash script to execute? Please take a look at the attached code snippet. I will award 500.00 points for the best answer.
cat << EOF > /etc/rc2.d/S15ssh_gen_host_keys
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N ''
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N ''
rm -f \$0