ssh-keys-import: RouterOS v7 path syntax

This commit is contained in:
Christian Hesse 2022-05-10 16:16:30 +02:00
parent fbc6852687
commit c35eec0f22

View file

@ -6,6 +6,6 @@
# import ssh keys from file
# https://git.eworm.de/cgit/routeros-scripts/about/doc/ssh-keys-import.md
:foreach Key in=[ / file find where type="ssh key" ] do={
/ user ssh-key import user=admin public-key-file=[ / file get $Key name ];
:foreach Key in=[ /file/find where type="ssh key" ] do={
/user/ssh-key/import user=admin public-key-file=[ /file/get $Key name ];
}