Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Jumphost.java in the examples directory #201

Closed
Tilden18 opened this issue Sep 2, 2022 · 4 comments
Closed

Missing Jumphost.java in the examples directory #201

Tilden18 opened this issue Sep 2, 2022 · 4 comments

Comments

@Tilden18
Copy link

Tilden18 commented Sep 2, 2022

In the Readme states the below

  • JumpHosts.java
    This program will demonstrate SSH through jump hosts.

but the JumpHosts.java file is missing in the examples directory. c

@norrisjeremy
Copy link
Contributor

norrisjeremy commented Sep 2, 2022

I'm guessing this is it?

http://www.jcraft.com/jsch/examples/JumpHosts.java

@norrisjeremy
Copy link
Contributor

norrisjeremy commented Sep 2, 2022

Hi @Tilden18,

FYI, I pulled the copy of this from the original author's site I noted above and have included it in PR #200.

Btw, this code seems to just use port-forwarding, so I don't believe operates in the same manner as OpenSSH's ProxyJump functionality (which I believe accomplishes jump host type functionality without using port-forwarding), if that is what you are looking for.

Thanks,
Jeremy

@Tilden18
Copy link
Author

Tilden18 commented Sep 5, 2022

Hi Jeremy,
yes, I was looking for ProxyJump functionality (with Password and Key authorization). do you support this in jsch?

Similar to this.
https://github.com/hierynomus/sshj/blob/master/examples/src/main/java/net/schmizz/sshj/examples/Jump.java

@norrisjeremy
Copy link
Contributor

norrisjeremy commented Sep 6, 2022

Hi @Tilden18,

JSch doesn't currently support the ProxyJump specific directive as implemented in OpenSSH.
However, it should be possibly to perform something akin to it using port forwarding (as the JumpHosts.java example implements).
Also, from my limited understanding of SSHJ, the example you linked from it appears to be similar to the JumpHosts.java example, in that it utilizes port forwarding.

Thanks,
Jeremy

@mwiede mwiede closed this as completed Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants