I have already searched about this issue, analyzed several open source tools (like Ganymed SSH-2, SSHJ, sshxcute) and couldn’t find any solution to connect to remote machine from remote machine. What I have is:
1) machine B is behind firewall and ins’t visible to the Internet (and not in my infrastructure)
2) I can connect to machine B from machine A (which is also not in mine infrastrucutre)
3) I need to connect from my machine to machine A (pretty easy solution and any from listed SSH libs can do that) and from machine A to machine B (probably I lack knowledge about SSH protocol or none of listed tools can do it?).
I have found one lib which is allowing described connection scenario which is J2SSH, but it is not free. The question is, are there any free libs which would allow me to do described connection?
I have already searched about this issue, analyzed several open source tools (like Ganymed
Share
Refer to JSch’s sample program http://www.jcraft.com/jsch/examples/JumpHosts.java.html.