Code: Select all
[user@mikrotik] > ip ssh import-host-key private-key-file=flash/id_rsa_mikrotik
This will replace current SSH host key, yes? [y/N]:
[user@mikrotik] > system reset-configuration
Dangerous! Reset anyway? [y/N]:
[user@mikrotik] > ip ssh import-host-key private-key-file=flash/id_rsa_mikrotik
This will replace current SSH host key, yes? [y/N]:
[user@mikrotik] > system reset-configuration
Dangerous! Reset anyway? [y/N]:
on a new line to your script.y
/system script
add dont-require-permissions=no name=reset-to-base-config owner=admin policy=reboot,write,policy source="/system reset-configuration keep-users=yes no-defaults=yes skip-backup=yes run-after-reset=flash/base-config.rsc\r\ny"