In JetBrains TeamCity before 2021.2.1, the Agent Push feature allowed selection of any private key on the server.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-29231
https://blog.jetbrains.com/blog/2022/02/08/jetbrains-security-bulletin-q4-2021/