Transfer SSH Key from server to agent

Hi all !
My application running on an teamcity agent, needs ssh-key for connection with third-party server.
I know that the server contains SSH keys management, but not for these purpose (it intended to keep keys for a GIT authentification).
But, perhaps there is a possibility to transfer key file from server (SSH keys management) to agent using ant task?
How can i do it?
Who can tell anything about this?

Thanks in advance.


Comment actions Permalink

Hi Aleksei,

There is no special feature for such use case. You can create a build configuration (for example bash script), that copies ssh key from server to agent (for example using scp), modify ssh config and so on. Then you have to run this build configuration on all enabled compatible agents.

Comment actions Permalink

Alina, thanks a lot :)


Please sign in to leave a comment.