auto generate maintenance keys

This commit is contained in:
xdrm-brackets 2017-05-10 13:48:55 +02:00
parent 26128b7a93
commit 6754723fe0
3 changed files with 15 additions and 3 deletions

5
.gitignore vendored
View File

@ -1,5 +1,8 @@
*.img *.img
*.zip *.zip
/clone/server/** /clone/server/created
/clone/server/authorized_keys
/clone/server/maintenance/*
!/clone/server/maintenance/generate.sh
/clone/clone.conf /clone/clone.conf

View File

@ -12,5 +12,6 @@ Note: _if you don't posess it, go to raspberry website and download debian lite.
#### 2. Clone script #### 2. Clone script
1. Launch `./clone {yoursddevice}` 1. Launch `./server/maintenance/generate.sh` to generate maintenance keys
2. Now start the raspi3 with it 2. Launch `./clone {yoursddevice}`
3. Now start the raspi3 with it

View File

@ -0,0 +1,8 @@
#!/bin/bash
for i in `seq 1 10`; do
ssh-keygen -t ecdsa -b 521 -C "[ECDSA:521] maintenance$i" -f ./key$i -P "" 2> /dev/null > /dev/null;
done;