2005-06-07 07:04:44 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
for type in rsa dsa; do {
|
|
|
|
# check for keys
|
2006-01-02 13:00:09 +00:00
|
|
|
key=/etc/ssh/ssh_host_${type}_key
|
2005-06-07 07:04:44 +00:00
|
|
|
[ ! -f $key ] && {
|
|
|
|
# generate missing keys
|
|
|
|
[ -x /usr/bin/ssh-keygen ] && {
|
|
|
|
/usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec $0 $*
|
|
|
|
} &
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
}; done
|
2006-03-06 22:37:02 +00:00
|
|
|
mkdir -p /var/empty
|
2005-06-07 07:04:44 +00:00
|
|
|
/usr/sbin/sshd
|