aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-12-16 16:30:29 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-12-16 22:26:29 +0100
commit9a0321d40d495b78fd613557260895a0e95e7734 (patch)
tree9ba38dd825e8df1ef7c9967e1314ac6073554d28
parent4a5c55ca2b782982dbbcf5ab5f8dbe9291c2d2c3 (diff)
doc/ssh-keys-import: number keys, do not overwrite on same comment
-rw-r--r--doc/ssh-keys-import.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/ssh-keys-import.md b/doc/ssh-keys-import.md
index e6ae96c..3dc8ccf 100644
--- a/doc/ssh-keys-import.md
+++ b/doc/ssh-keys-import.md
@@ -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)