In JetBrains TeamCity prior to 2022.04.3 the private SSH key could be written to the server log in some cases
jetbrains teamcity