After GitHub "has disabled support for weak encryption" [ https://githubengineering.com/crypto-deprecation-notice/ ] in [ https://github.com/Microsoft/Git-Credential-Manager-for-Windows ] my TeamCity lost connection with Git:
"List remote refs failed: com.jcraft.jsch.JSchException: Algorithm negotiation fail"
I had a update Github in server/slaves and changed register entries. And, I tried update jsch lib to last "jsch-0.1.54.jar" [ "Algorithm negotiation fail" with SSH authentication on TeamCity ], but doesn't works.
My env:
- Teamcity Professional 8.1.4 (build 30168)
- Windows 2008 Server R2 x64
- Git version 2.16.1.windows. (x64)
I had the same issue (I was on
9.0.1, however), upgrading tojsch-0.1.54.jardid not help either.Ended up upgrading to version
10.0.3and that fixed everything. Upgrading is very simple..tar.gzof the specified version you want to upgrade toserver.xmlserver.xmlconfiguration into the new version underconf/systemdto manage the process)If not using
systemdor some other similar daemon manager, just launch the process however you normally launch it.