]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/boot.d/18-sshcerts
Ein NTFS-Update fuer den Heiner :D
[people/teissler/ipfire-2.x.git] / src / boot.d / 18-sshcerts
CommitLineData
f8ae001e
MT
1#!/bin/sh
2if [ ! -e /etc/ssh/ssh_host_key ]; then
3 echo "Generating SSH RSA1 key. This may take several minutes."
4 /usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
5fi
6if [ ! -e /etc/ssh/ssh_host_rsa_key ]; then
7 echo "Generating SSH RSA key. This may take several minutes."
8 /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
9fi
10if [ ! -e /etc/ssh/ssh_host_dsa_key ]; then
11 echo "Generating SSH DSA key. This may take several minutes."
12 /usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
13fi