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

When using Password-based authentication: Com.jcraft.jsch.JSchException: Auth fail

dmarkhas opened this issue · comments

I am getting the Com.jcraft.jsch.JSchException: Auth fail error, even when using password authentication - this is happening when running on a Windows Server 2012 Build Agent, trying to deploy artifacts to SLES11SP1 Linux server.

The credentials I am using are correct, and on the server side I am seeing the following errors in the log:

Mar 14 13:07:48 bteppws01 sshd2[32672]: connection from "10.64.98.37"
Mar 14 13:07:49 bteppws01 sshd2[32693]: Remote host disconnected: com.jcraft.jsch.JSchException: Auth fail
Mar 14 13:07:49 bteppws01 sshd2[32693]: Key exchange failed in remote: 'com.jcraft.jsch.JSchException: Auth fail'
Mar 14 13:07:49 bteppws01 sshd2[32693]: exiting.

The server is running SLES11SP1 (old, I know) and the key algorithm it supports is ssh-dss, which is unsupported by default by recent OpenSSH.
I had to add "HostkeyAlgorithms ssh-dss" to my .ssh\config file to be able to SSH to the server successfully from Git Bash, and it works now but Deployer plugin is still failing, and I don't know if it's because it's ignoring the configuration of the .ssh\config or some other issue.

Any ideas what may be the problem, or how to debug it further?

+1

To debug this problem, please use latest version of plugin (or TeamCity server 2017.1+)
In build log, choose "verbose" level and paste the ssh debug messages to this thread

same problem