In JetBrains TeamCity prior to 2021.2.1, the Agent Push feature allowed selection of any private key on the server.
jetbrains teamcity