Remote Copy File API



Hello,

My project involves copying files from one Host to another Host located
on the same network of, currently, Solaris machines.

Is there a library or API set that performs tasks similar to Unix's
"rcp host1:<filename> host2:<filename>"

Something like:

RemoteFile r = new RemoteFile(host2, path, filename); ??

I want to do this in Java instead of using Shell Scripts for obvious
reasons. I've thought of looking into Jakarta by Apache for FTP, but
we can't get into storing/saving the password for the FTP username.

Any ideas or recommendations?

Thank you!

.