Cannot SSH after system reset-configuration on v5.0

After “/system reset-configuration” and automatic reboot cannot connect to router by ssh. Router terminates connection before user authentication starts.

After manual reboot everything works fine.


The reason (I think) is invalid/missing server SSH keys. They are not generated after first automatic boot (after reset-configuration), but are generated after next manual reboot (“Generating SSH …” message on serial console during boot).


Tested on RB500 and RB711

Bug report issued on april 3 to mikrotik support. Not answered yet, but 5.1 is out, and seems to works fine (other problems in 5.1 i do not recommend to install).