13 lines
195 B
Bash
Executable File
13 lines
195 B
Bash
Executable File
#!/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"
|