Files
docker_ssh_auth_key_challenge/controller/scripts/init.sh
2022-12-27 21:10:29 -05:00

17 lines
299 B
Bash
Executable File

#!/bin/bash
SCORING_POD=${SCORING_POD:=client}
SCORING_FLAG=${SCORING_FLAG:=defaultFlag}
/opt/scripts/gen_keys.sh
while true; do
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "user@${SCORING_POD}" -i "/root/.ssh/user" \
"echo ${SCORING_FLAG} >.flag"
sleep 15
done