TW-53210 disable gssapi-with-mic ssh authentication
authorDmitry Neverov <dmitry.neverov@gmail.com>
Wed, 10 Jan 2018 12:00:38 +0000 (13:00 +0100)
committerDmitry Neverov <dmitry.neverov@gmail.com>
Wed, 10 Jan 2018 12:00:38 +0000 (13:00 +0100)
commitd35446620dff99a95dc2f0bc289363811c5743ea
treea24c5608f8622edc319cec2346f4cd2e7c47fe36
parentc0590d9a48ead3442e89ae0abcfa418108a4f494
TW-53210 disable gssapi-with-mic ssh authentication

It wasn't supported in the trilead-based ssh client (used before
2017.2.1), so disabling it should not break anything. Problem with
gssapi-with-mic is that by default java asks a user for credentials and
waits for input from stdin, as a result checkout fails by timeout.

Also now we specify a custom security callback handler instead of the
default one which uses stdin. Our handler doesn't provide any
credentials, but will work if the agent machine already has the required
kerberos ticket.
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/BuildContext.java
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/Context.java
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/GitCommandLine.java
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/JSchClient.java
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/NoBuildContext.java
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/command/impl/SshHandler.java
git-agent/src/org/jetbrains/git4idea/ssh/GitSSHHandler.java