This commit is contained in:
1
infrastructure/.gitignore
vendored
Normal file
1
infrastructure/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ssh_keys/
|
BIN
infrastructure/ssh_keys.zip
Normal file
BIN
infrastructure/ssh_keys.zip
Normal file
Binary file not shown.
7
infrastructure/unzip-ssh-keys.sh
Executable file
7
infrastructure/unzip-ssh-keys.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
ZIP_KEY=$1
|
||||
|
||||
unzip -P "$ZIP_KEY" ssh_keys.zip
|
||||
|
||||
echo "unzip done!"
|
12
infrastructure/zip-ssh-keys.sh
Executable file
12
infrastructure/zip-ssh-keys.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
ZIP_KEY=$(openssl rand -hex 30)
|
||||
|
||||
mkdir -p ssh_keys/
|
||||
|
||||
cp -f ~/.ssh/id_ed25519* ssh_keys/
|
||||
|
||||
zip -r --password $ZIP_KEY ssh_keys.zip ssh_keys/
|
||||
|
||||
echo "zip done!"
|
||||
echo "Zip key: $ZIP_KEY"
|
Reference in New Issue
Block a user