Quote:
The option StrictHostKeyChecking specifies whether or not ssh will automatically add new host keys to the $HOME/.ssh/known_hosts file, or never automatically add new host keys to the host file. This option, when set to yes, provides maximum protection against Trojan horse attacks. One interesting procedure with this option is to set it to no at the beginning, allow ssh to add automatically all common hosts to the host file as they are connected to, and then return to set it to yes to take advantage of this feature.
- this is what I found in internet, but that definitely doesn't work, I know about the option, but the question is being asked all the time.
Wrapping up the whole process in expect script would make sense for automated tasks, but for user experience, just enter Yes