Generate new sshd host key when necessary. I'm tired of

waiting for someone to commit this. :)
This commit is contained in:
jkh 2000-02-28 19:21:05 +00:00
parent 5dffca5013
commit e15679d81e
7 changed files with 49 additions and 7 deletions

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac

View File

@ -605,7 +605,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
echo -n ' sshd';
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo creating ssh host key
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
echo now starting sshd
else
echo -n ' sshd';
fi
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
;;
esac