Files
docker_ssh_auth_key_challenge/controller/scripts/gen_keys.sh
2022-12-20 22:15:44 -05:00

11 lines
210 B
Bash
Executable File

#!/bin/bash
TEAM_NUM=${TEAM_NUM:=10}
for (( i=1; i<=TEAM_NUM; i++ )); do
if [[ ! -e "${HOME}/.ssh/team-${i}" ]]; then
ssh-keygen -q -t ed25519 -N '' -f "${HOME}/.ssh/team-${i}" -C "team${i}"
fi
done