RouterOS manual

/ip/ssh/regenerate-host-key

regenerate-host-key

Generates new and replaces the current set of private keys (RSA/Ed25519) on the router. Previously imported keys may stop working.


ip/ssh/regenerate-host-key

Type: Command

Generates new and replaces the current set of private keys (RSA/Ed25519) on the router. Previously imported keys may stop working.

Source

Looking for how the configurator itself works? Configurator manual

Updated 2026-11-01.