I did this
Such a situation causes as warning to get displayed but does not prevent the transfer to be attempted.
This was not considered a security vulnerability by the curl security team, but should be improved.
It should be noted that an SSH connection can still be verified without a known hosts file with the use of --hostpubsha256 or --hostpubmd5 (and their libcurl counterparts of course).
Reported-by: Harry Sintonen
I expected the following
If no file is there and no extra option is used, it should probably require --insecure to continue.
curl/libcurl version
master
operating system
any