mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
ssh-keys-import: RouterOS v7 path syntax
This commit is contained in:
@ -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 ];
|
||||
}
|
||||
|
Reference in New Issue
Block a user