Hello all, this is my first post. After searching for genuine solution online I found none so I decided to open this.
Earlier I was trying to avoid the ‘ask for continue connecting?’, in the Travis Doc it said to include
addons:
known_hosts: ${IP_ADDRESS}
in the travis.yml
and when the build is running I can write the ssh-keyscan in to the file /travis/home/.ssh/known_hosts
(I know that by running cat command)
But then in my ssh connect line they still ask for my permission!!
So I guess the build does not read configuration from the mentioned file although I did as instructed
My workaround is passing
-o StrictHostKeyChecking=no
to the ssh command but I feel very guilty about that