mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Get the order of things right; the keys need to be generated
early to allow entropy to replenish. sshd must start late to catch the full effects of ldconfig.
This commit is contained in:
parent
2265d5e30d
commit
20fb384ee0
8 changed files with 9 additions and 28 deletions
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
9
etc/rc
9
etc/rc
|
|
@ -395,6 +395,15 @@ case ${sendmail_enable} in
|
|||
;;
|
||||
esac
|
||||
|
||||
case ${sshd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then
|
||||
echo -n ' sshd';
|
||||
${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${usbd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' usbd'; /usr/sbin/usbd ${usbd_flags}
|
||||
|
|
|
|||
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -608,11 +608,7 @@ network_pass3() {
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue