I am trying to create an application that can check SFTP connection to the remote systems from my local server(eg. tsti5454.boydfd.com). I am using Jscraft API for this purpose.
Now when I have connected to my local server, from here I should be able to SFTP another server : "sftp email@example.com". But I have no clue how that is done. I am new to JCraft. Please help me with this.
It is not clear to me what you are trying to do. You seem to have 3 machines (say A, B and C) and currently you have setup a SSH connection from A to B but do you then want to SFTP from B to C moving files only between B and C or are you wanting to move files between A and C ?
If the former then just issue simple SFTP commands from B to C through your A to B SSH connection. If the latter then why do you need to go via B.
Of course I could have totally misunderstood your requirement. In which case could you elaborate on your requirement and enlighten me.
subject: SFTP from local Server to Remote Using JCraft