auto generate maintenance keys
This commit is contained in:
parent
26128b7a93
commit
6754723fe0
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -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;
|
Loading…
Reference in New Issue