DSL Embedded :: starting ssh upon boot



Yes, I am using backup/restore.

But, I'm not currently backing up (via .filetool.lst) /etc/ssh/*key .  Should I?  I would've thought that would not work because the ssh service is started before the files are restored.  Or, am I confused?

Does adding

/etc/init.d/ssh start

to /opt/bootlocal.sh

help.

This will run as root and occurs after the backup is restored.

[I thought I replied to this, but I cannot find my response.]

I tried adding
Quote
etc/ssh/ssh_host_key
etc/ssh/ssh_host_key.pub
etc.
to .filetool.lst and then adding
Code Sample
/etc/init.d/ssh restart
to /opt/bootlocal.sh, but these changes did not help.

I guess I'll have to live with it.

start <> restart

Why start it in the first place? When you can start it in bootlocal.sh

If you start it at boot and then want to re-read the configurations then look at

reload or perhaps force-reload

Look at the script options in /etc/init.d/ssh

Quote (roberts @ June 19 2007,17:18)
start <> restart

Why start it in the first place? When you can start it in bootlocal.sh


Oh, I see.  You mean, I shouldn't use the cheatcode?

Next Page...
original here.