+# Begin $rc_base/init.d/autosshd + @@ -12,6 +12,9 @@ + start) + if cat /proc/cmdline | grep -q "autosshd"; then + echo "root:lfs" | chpasswd ++ ssh-keygen -q -t rsa1 -f /etc/ssh/ssh_host_key -N "" ++ ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" ++ ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -N "" + /etc/rc.d/init.d/sshd start
This is good. Except, :), this script is only run if the boot message times out (or, I guess if after booting, the user decides to manually call /etc/rc.d/init.d/autosshd).
If you enter 'linux [options]' at the prompt, autosshd doesn't get run, so the sshd server isn't started. If later, you want to start that server, likely, the user would run '/etc/rc.d/ini.t/sshd start'
Since no key has been generated, what happens?
-- Jeremy Huntwork -- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
