JetBrains / teamcity-deployer-plugin

Deployer plugin for TeamCity CI server

Home Page:http://confluence.jetbrains.net/display/TW/Deployer+plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSH deployer authentication failure.

indira-ak opened this issue · comments

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?

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.