k8s-playground/setup/trust-hosts.sh
2019-05-22 13:37:13 +02:00

4 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