Anton Medvedev on Twitter: "Reading manuals is extremely helpful. I discovered the "accept-new" option for ssh strict host key checking and now I can delete my buggy code for manually populating known_hosts.
How to disable strict host key checking on Linux SSH client - YouTube
How to disable Host key verification failed checking in ssh - Linux - nixCraft Linux/Unix Forum