mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
ssh-keys-import: RouterOS v7 path syntax
This commit is contained in:
parent
fbc6852687
commit
c35eec0f22
1 changed files with 2 additions and 2 deletions
|
@ -6,6 +6,6 @@
|
||||||
# import ssh keys from file
|
# import ssh keys from file
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/doc/ssh-keys-import.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/doc/ssh-keys-import.md
|
||||||
|
|
||||||
:foreach Key in=[ / file find where type="ssh key" ] do={
|
:foreach Key in=[ /file/find where type="ssh key" ] do={
|
||||||
/ user ssh-key import user=admin public-key-file=[ / file get $Key name ];
|
/user/ssh-key/import user=admin public-key-file=[ /file/get $Key name ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue