mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
doc/ssh-keys-import: number keys, do not overwrite on same comment
This commit is contained in:
parent
4a5c55ca2b
commit
9a0321d40d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue