mikrotik ssh keys
Generate ssh key:
$ ssh-keygen -f mikrotik.key
will (with recent OpenSSH) generate an ED25519 key, which RouterOS has
supported since
7.12. Copy
it to the device (implicitly to /):
$ scp mikrotik.key.pub admin@1.2.3.4:
create a user and then assign that key to it:
[admin@sw] > /user add name=someuser group=read disabled=no
[admin@sw] > /user ssh-keys import public-key-file=mikrotik.key.pub user=someuser