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

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

Open dmarkhas opened 8 years ago

dmarkhas commented 8 years ago

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?

jdnichollsc commented 6 years ago

+1

tddfan commented 6 years ago

+1

lahahana commented 6 years ago

+1

nskvortsov commented 6 years ago

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

Zetaluoxin commented 5 years ago

same problem

stlsw commented 5 years ago

+1