SSH deployer authentication failure.
indira-ak opened this issue · comments
Attachment has the full details about the settings done on teamcity build runner : SSH Deployer Authentication Issues log below,
Questions:
My requirement is to deploy the artifacts (created in teamcity while compiling the code) to dev server through ssh deployer.
- how to get ride of the auth fail?
- Please specify with some examples how each deployers are working?
- where should i place the private key to make it useful for teamcity to connect to any servers and deploy the artifacts to that server?
Default private key uses ~/.ssh/id_rsa key for auth. This file is supposed to be located at Build Agent machine.
Recently, a support for SSH-Agent auth was implemented by @webner . This feature will help you to make a key useful for connecting to any servers. It can be succefully combined with TeamCity ssh key management and ssh-agent build
Follow these steps:
- Upload your key to TeamCity server
- Set up an ssh-agent build feature for your build
- Choose ssh-agent auth. type in ssh deployer settings.