mod/ssh-keys-import: handle new parameter

With RouterOS 7.21beta2 the user SSH keys "key-owner" field was renamed
to "info".
This commit is contained in:
Christian Hesse 2025-10-07 16:02:53 +02:00
parent 48d0f1f0b9
commit 1a2432a076
2 changed files with 5 additions and 3 deletions

View file

@ -38,8 +38,9 @@ import that key:
$SSHKeysImport "ssh-rsa AAAAB3Nza...QYZk8= user" admin;
The third part of the key (`user` in this example) is inherited as
`key-owner` in RouterOS. Also the `MD5` fingerprint is recorded, this helps
to audit and verify the available keys.
`key-owner` in RouterOS (or `info` starting with RouterOS 7.21beta2). Also
the `MD5` fingerprint is recorded, this helps to audit and verify the
available keys.
> **Info**: Use `ssh-keygen` to show a fingerprint of an existing public
> key file: `ssh-keygen -l -E md5 -f ~/.ssh/id_ed25519.pub`