11 lines
210 B
Bash
Executable File
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
|
|
|