unaiur
07-09-2005, 01:19
I'm thinking about lauching dropbear automatically on boot and removing telnetd.
I've already patched rc to launch dropbear and adjust input filtering rules, both controlled by sshd_enabled_x nvram variable.
My main doubt is how to generate the private keys. One option is to generate the keys on every boot until the flashfs is committed and enabled.
Another option is to modify dropbear using libnvram to read keys and other configuration parameters. If there aren't keys, we can generate them, write to nvram and commit. This option allows better integration with the webserver.
What do you think about this idea? Oleg, would you accept the patches in your firmwares?
I've already patched rc to launch dropbear and adjust input filtering rules, both controlled by sshd_enabled_x nvram variable.
My main doubt is how to generate the private keys. One option is to generate the keys on every boot until the flashfs is committed and enabled.
Another option is to modify dropbear using libnvram to read keys and other configuration parameters. If there aren't keys, we can generate them, write to nvram and commit. This option allows better integration with the webserver.
What do you think about this idea? Oleg, would you accept the patches in your firmwares?