I have a script that syncs git repositories. If the repository has never been synchronized, the directories are created.
Eventually, when a repository is added, the server that serves the repository is not listed in the .ssh/known_hosts
file and the ssh client does not proceed because it is necessary to confirm the public key's inclusion in the file.
How do I check if the server is already listed in .ssh/known_hosts
?