TW-53210 disable gssapi-with-mic ssh authentication
authorDmitry Neverov <dmitry.neverov@gmail.com>
Wed, 10 Jan 2018 11:05:56 +0000 (12:05 +0100)
committerDmitry Neverov <dmitry.neverov@gmail.com>
Wed, 10 Jan 2018 11:05:56 +0000 (12:05 +0100)
commit792a3c75be370173ba5df6f4f958e0ef5e4afb9e
tree1f9ef7572a15237e5a80cff66b64dba0931a1430
parent4c092fea490d2f7e6e82448694d0f5a76b7481f1
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