mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 10:58:27 +02:00
1dfdb01703
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@120 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
552 B
Bash
21 lines
552 B
Bash
#!/bin/sh
|
|
|
|
# Check for the SSH1 RSA key
|
|
if [ ! -f /etc/ssh_host_key ] ; then
|
|
echo Generating RSA Key...
|
|
/usr/bin/ssh-keygen -t rsa1 -f /etc/ssh_host_key -C '' -N ''
|
|
fi
|
|
|
|
# Check for the SSH2 RSA key
|
|
if [ ! -f /etc/ssh_host_rsa_key ] ; then
|
|
echo Generating RSA Key...
|
|
/usr/bin/ssh-keygen -t rsa -f /etc/ssh_host_rsa_key -C '' -N ''
|
|
fi
|
|
|
|
# Check for the SSH2 DSA key
|
|
if [ ! -f /etc/ssh_host_dsa_key ] ; then
|
|
echo "Generating DSA Key... (Takes a few minutes)"
|
|
/usr/bin/ssh-keygen -t dsa -f /etc/ssh_host_dsa_key -C '' -N ''
|
|
fi
|
|
|