• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SFTP from local Server to Remote Using JCraft

 
Aswin Gopal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

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 arden@skyblue.com". But I have no clue how that is done. I am new to JCraft. Please help me with this.

Thanks.

 
K. Tsang
Bartender
Posts: 3507
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check out the JCraft site jcraft.com? There is a page with examples.
 
Aswin Gopal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I did. In all those example , in a single session they SFTP to remote location.

They dont connect to one server and then SFTP to another from it. I didnt come across such a example.
 
K. Tsang
Bartender
Posts: 3507
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah is there a difference between FTP-ing from server to server than from location to another location?

As long as the destination is where you want the files to go ... then you are basically FTP-ing or copying.
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic