I have read Send files from one remote server using JSch to another server using JSch too and the code seems very promising. But one downside it has is it uses local machine as buffer for transferring files. (So file flows like Remote A – Local – Remote B)
I want send any protocol (SSH maybe) to remote A and remote A send files to remote B directly (using SFTP). (desirable: Remote A – Remote B)
It doesn't have to use JSch specifically, but it is the only one seems workable I have found so far.
It can be done manually but all jobs must be done automatically.
Any single keyword or pseudo-code would be very thankful!