jgit/org.eclipse.jgit/src/org/eclipse/jgit
Saša Živkov b6e2800560 ssh: Prefer algorithms of the known host keys
JSch prefers ssh-rsa key type. When the remote server supports ssh-rsa
key type then this key type will be used even if the known_hosts file
contains a host key for that host, but with different key type.
This caused an unexpected UnknownHostKey error.

To fix the issue first scan the known_hosts, the HostKeyRepository in
JSch API, for any already existing host keys for the target host and
modify the default session settings to prefer their algorithms. However,
do this only if there is no HostKeyAlgorithms setting active.

Change-Id: I236df2a860ddd9289a0a820ddf09c2dea3673d36
2018-10-18 11:59:16 +02:00
..
annotations Revert usage of TYPE_USE in Nullable and NonNull annotations 2018-01-19 22:42:38 +09:00
api Merge branch 'stable-5.0' into stable-5.1 2018-10-06 16:56:12 +02:00
attributes Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
blame Fix API breakage introduced by da254106 2018-08-08 11:44:55 +02:00
diff Use the same default diff.renameLimit = 400 like native git 2018-09-09 13:03:36 +02:00
dircache Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
errors Remove further unnecessary 'final' keywords 2018-05-18 17:59:45 +02:00
events Store in IndexChangedEvent if it was caused by JGit itself 2018-05-13 22:38:54 +02:00
fnmatch Remove further unnecessary 'final' keywords 2018-05-18 17:59:45 +02:00
gitrepo Merge "Support remove-project node in the manifest parser" 2018-08-20 22:14:35 -04:00
hooks Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
ignore Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
internal Merge branch 'stable-5.0' into stable-5.1 2018-10-08 23:41:38 +00:00
lib Merge branch 'stable-5.0' into stable-5.1 2018-10-07 03:45:28 +00:00
merge Fix ResolveMerger: rebase with autocrlf=true, direct checkout 2018-08-13 13:15:24 +02:00
nls Don't subclass ThreadLocal to avoid memory leak in NLS 2018-02-14 21:39:25 +01:00
notes Remove 'final' in parameter lists 2018-05-15 17:05:02 -04:00
patch Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
revplot refactor: simplify collection.toArray() 2018-08-23 01:34:39 -04:00
revwalk Parse signature of GPG-signed commits 2018-09-04 20:13:16 +02:00
storage Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
submodule Remove 'final' in parameter lists 2018-05-15 17:05:02 -04:00
transport ssh: Prefer algorithms of the known host keys 2018-10-18 11:59:16 +02:00
treewalk Fix replacement quoting for replaceAll in filter command 2018-09-10 22:21:15 +02:00
util Merge branch 'stable-5.0' into stable-5.1 2018-09-18 09:19:18 +09:00