k8s-playground/setup/trust-hosts.sh

5 lines
108 B
Bash
Executable File

for i in $(cat inventory.yaml | grep ssh | cut -d= -f2)
do
ssh-keyscan $i >> ~/.ssh/known_hosts
done