openwisp / openwisp-firmware-upgrader

Firmware upgrade solution for OpenWRT with possibility to add support for other embedded OSes. Provides features like automatic retry for network failures, mass upgrades, REST API and more.
http://openwisp.org
Other
50 stars 58 forks source link

[bug] Upgrading using -n causes host key error #233

Closed nemesifier closed 1 year ago

nemesifier commented 1 year ago

When upgrading an OpenWrt device using the -n option (do not save configuration over reflash), this may happen when the system tries to reconnect:

Trying to reconnect to device at 172.30.131.203 (attempt n.8)...
Device not reachable yet, (Host key for server '172.30.XXX.XXX' does not match: got 'AAAAB3N.....').

We should devise a generic mechanism to indicate to the upgrader that it shall auto add the new host key whenever the config of the device is lost on purpose.

nemesifier commented 1 year ago

Fixed by https://github.com/openwisp/openwisp-firmware-upgrader/pull/236