Currently we have 2 Unix servers A and B. To connect to B server, initially we used to first connect server A and then we will login to JumpHost B using SSH at the Unix prompt.
Now I am working on a simple tool in Java which has to download the files from server B.
In the sample code I got from the link below , if I pass the host details of B server, the host connection is failing.
When I pass the host details of A server the connection is success and able to download the files present in server A.
I need pointers on how to connect to server A and then server B through Java and download files from server B.