JetBrains / teamcity-deployer-plugin

Deployer plugin for TeamCity CI server
http://confluence.jetbrains.net/display/TW/Deployer+plugin
Apache License 2.0
39 stars 29 forks source link

SSH deployer authentication failure. #61

Closed indira-ak closed 9 years ago

indira-ak commented 9 years ago

deployplugin_issue_ssh

Attachment has the full details about the settings done on teamcity build runner : SSH Deployer Authentication Issues log below,

image

Questions: My requirement is to deploy the artifacts (created in teamcity while compiling the code) to dev server through ssh deployer.

  1. how to get ride of the auth fail?
  2. Please specify with some examples how each deployers are working?
  3. 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?
nskvortsov commented 9 years ago

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:

  1. Upload your key to TeamCity server
  2. Set up an ssh-agent build feature for your build
  3. Choose ssh-agent auth. type in ssh deployer settings.