If you build custom images you can include the host keys in an overlay image.
Basically using the OpenWrt-ImageBuilder:
make image \
PROFILE="${PROFILE}" \
PACKAGES="${PACKAGES}" \
USER_FILES="_files_wndr3800_"
$ find _files_wndr3800_
_files_wndr3800_/etc/dropbear
_files_wndr3800_/etc/dropbear/dropbear_dss_host_key
_files_wndr3800_/etc/dropbear/dropbear_rsa_host_key
_files_wndr3800_/etc/dropbear/authorized_keys
On Sun, Dec 14, 2014 at 2:12 AM, Chris Green <[email protected]> wrote:
> On Sun, Dec 14, 2014 at 10:07:49AM +0000, Chris Green wrote:
>> I have Openwrt installed on a Mikrotik RB2011 router.
>>
>> Every time the router is rebooted it seems that dropbear creates a new
>> ssh host key. This is a real pain because my (several) client
>> machines refuse to connect until I delete the old host key from the
>> client host_keys file.
>>
>> Is there any way to get dropbear to remember and re-use a host key?
>>
> Sorry, forget that, dropbear doesn't regenerate the host key at every
> reboot. I've just been re-installing the OS so often I thought it was!
>
> --
> Chris Green
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users