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

