doc/ssh-keys-import: number keys, do not overwrite on same comment

This commit is contained in:
Christian Hesse 2021-12-16 16:30:29 +01:00
parent 4a5c55ca2b
commit 9a0321d40d

View file

@ -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)