mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
doc/ssh-keys-import: number keys, do not overwrite on same comment
This commit is contained in:
@ -26,7 +26,7 @@ Then run the script:
|
||||
|
||||
Starting with an `authorized_keys` file you can split it on a shell:
|
||||
|
||||
grep -E '^ssh-rsa' authorized_keys | while read type key name; do echo $type $key $name > $name.pub; done
|
||||
grep -E '^ssh-rsa' authorized_keys | nl -nrz | while read num type key name; do echo $type $key $name > $num-$name.pub; done
|
||||
|
||||
---
|
||||
[◀ Go back to main README](../README.md)
|
||||
|
Reference in New Issue
Block a user