http://arav.i2p/stuff/article/hardening_mikrotik?lang=en
But before, a key should be stored on a router. Go to Files and right there, choose New->Text file in an up left corner. Put a name, and paste a content of a ./.ssh/<cipher>.pub file from your host you use to connect to the router.