Transfer files over port 22 with sshkey in the Java application

Hello guys,

im developing a "file exchange" application now. Im using rsync over ssh in the moment. In windows it looks like this:

c:\cygwin\bin\rsync -az --fuzzy -P -e "/cygdrive/c/cygwin/bin/ssh -i /cygdrive/c/mysshkey" user@server:/files/myfile /cygdrive/c/myfiles/

and on linux or mac like this

rsync -az --fuzzy -P -e "ssh -i /mysshkey" user@server:/files/myfile /myfiles/

It works very good. The matter is what the user of this application must install rsync and ssh (cygwin on windows).

This installation for the users is very difficult because they are not IT people.

Im looking for a pure java solution to integrate these application. But i can not find anything.

The conditions are: 1. only the port 22 is open

2. authorisation via ssh-key

3. possibility of file transfer resuming

Is there any possibility to integrate these features in the application to abandon external tools (rsync).

sry for my english

thank You All

regards

alex

[1043 byte] By [Figwama] at [2007-11-26 17:53:20]
# 1
http://www.jcraft.com/Check out JSch (JZlib is also needed).That is one possibilty.
masijade.a at 2007-7-9 5:06:20 > top of Java-index,Core,Core APIs...
# 2
It looks nice. I will try it and post a feedback.Thank you!
Figwama at 2007-7-9 5:06:20 > top of Java-index,Core,Core APIs...
# 3
@masijadeYEAH man thats is, i checked it out, works fine!many thanks :D
Figwama at 2007-7-9 5:06:20 > top of Java-index,Core,Core APIs...
# 4
Welcome. ;-)
masijade.a at 2007-7-9 5:06:20 > top of Java-index,Core,Core APIs...