Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7877985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:31:54+00:00 2026-06-03T03:31:54+00:00

I have already searched about this issue, analyzed several open source tools (like Ganymed

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:31:57+00:00Added an answer on June 3, 2026 at 3:31 am

    Refer to JSch’s sample program http://www.jcraft.com/jsch/examples/JumpHosts.java.html.

    $ wget http://www.jcraft.com/jsch/examples/JumpHosts.java
    $ wget http://sourceforge.net/projects/jsch/files/jsch.jar/0.1.48/jsch-0.1.48.jar
    $ javac -cp ./jsch-0.1.48.jar:. JumpHosts.java
    $ java -cp ./jsch-0.1.48.jar:. JumpHosts usrA@hostA usrB@hostB
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've already searched about this issue both on SO and other websites but I
I have already posted a question about this, but the situation has changed sufficiently
I'd like to point out right away that I have already searched the site
I have already have this code to force these URLs to HTTPS: RewriteCond %{HTTPS}
I have already download the windows phone develop tools but I don't know how
So, I've been beating my head against the wall of this issue for several
We're getting a very intermittent (like every few weeks someone complains about this) primary
I've searched already for some ideas on this but the answers were totally code-based;
I've never seen anything like this before. Tried everything I could, searched the web
I have searched but cant find this question anywhere. My wife and I are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.