continuous integration - TeamCity build agent ssh with CA - Stack Overflow

admin2025-04-15  0

I have set up a TeamCity build agent, which runs as 'Local System'. I have created and signed ssh key pairs. So, now I have:

  • id_rsa
  • id_rsa.pub
  • id_rsa-cert.pub

When I try to ssh into a device (which is correctly setup with CA) it works with the following command:

ssh user@my_device -i id_rsa

I could not find any way and setting to let the teamcity agent know and use also the cert file inside of the SSH EXEC or SSH UPLOAD build runner.

Therefore I get the error message:

user@my_device: Permission denied (publickey,keyboard-interactive).

Has someone done this before and knows what I am doing wrong?

转载请注明原文地址:http://www.anycun.com/QandA/1744712757a86578.html