Hello rr-4098,
Thank you for your question and for reaching out with your question today.
Yes, there is a host-wide file for storing known hosts information in OpenSSH on Windows. It is located at `%ProgramData%\ssh\ssh_known_hosts`. This file is used to store the keys of known hosts that are trusted by all users on the system.
To add the key of the target server to the host-wide known hosts file, you can follow these steps:
1. Open a Command Prompt with administrative privileges.
2. Run the following command to add the key to the known hosts file:
ssh-keyscan -H -t rsa <target-server-ip-or-hostname> >> %ProgramData%\ssh\ssh_known_hosts
Replace `<target-server-ip-or-hostname>` with the IP address or hostname of the target server.
3. Type "yes" and press Enter when prompted to add the key to the file.
4. The key for the target server should now be added to the host-wide known hosts file, and subsequent SSH connections to that server should not prompt for verification.
Note that you may need to restart the SSH service (`sshd`) for the changes to take effect.
By adding the key to the host-wide known hosts file, all users on the system should be able to connect to the target server without encountering the verification prompt.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.