]> source.dussan.org Git - jgit.git/commit
sshd: support the ProxyJump ssh config 68/166868/16
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 26 Jul 2020 18:37:57 +0000 (20:37 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sat, 19 Sep 2020 19:17:00 +0000 (15:17 -0400)
commit566e49d7d39b12c785be24b8b61b4960a4b7ea17
treee85e18f6feed63d84a8a8be09cd6179bad97930f
parent020dc586a6e01fd98f0ce8ca0c0c9997b4224fc4
sshd: support the ProxyJump ssh config

This is useful to access git repositories behind a bastion server
(jump host).

Add a constant for the config; rewrite the whole connection initiation
to parse the value and (recursively) set up the chain of hops. Add
tests for a single hop and two different ways to configure a two-hop
chain.

The connection timeout applies to each hop in the chain individually.

Change-Id: Idd25af95aa2ec5367404587e4e530b0663c03665
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestHarness.java
org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshTest.java
org.eclipse.jgit.ssh.apache/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.apache/resources/org/eclipse/jgit/internal/transport/sshd/SshdText.properties
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/SshdText.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSessionFactory.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConstants.java