bump snapshot version to 20040718 to fix v1.x flaws
[openwrt.git] / obsolete-buildroot / sources / openssh.server.postinst
1 #!/bin/sh
2
3 # Check for the SSH1 RSA key
4 if [ ! -f /etc/ssh_host_key ] ; then
5 echo Generating RSA Key...
6 /usr/bin/ssh-keygen -t rsa1 -f /etc/ssh_host_key -C '' -N ''
7 fi
8
9 # Check for the SSH2 RSA key
10 if [ ! -f /etc/ssh_host_rsa_key ] ; then
11 echo Generating RSA Key...
12 /usr/bin/ssh-keygen -t rsa -f /etc/ssh_host_rsa_key -C '' -N ''
13 fi
14
15 # Check for the SSH2 DSA key
16 if [ ! -f /etc/ssh_host_dsa_key ] ; then
17 echo "Generating DSA Key... (Takes a few minutes)"
18 /usr/bin/ssh-keygen -t dsa -f /etc/ssh_host_dsa_key -C '' -N ''
19 fi
20
This page took 0.046714 seconds and 5 git commands to generate.