k8s-playground/setup/trust-hosts.sh

5 lines
108 B
Bash
Raw Normal View History

2019-05-22 11:37:13 +00:00
for i in $(cat inventory.yaml | grep ssh | cut -d= -f2)
do
ssh-keyscan $i >> ~/.ssh/known_hosts
done