Java api/sample code for sftp


 
Thread Tools Search this Thread
Operating Systems Solaris Java api/sample code for sftp
# 1  
Old 09-29-2005
Java api/sample code for sftp

I'm trying to find an api for Java to send/receive files via sftp. There are some available for purchase out there such as JScape, but I was hoping to find a free one.

Does anyone know of one?

I would also like to find an open source java example application that can send files via sftp.

Thanks for any direction.
# 2  
Old 06-18-2009
Java SFTP API

I use this SFTP API called Zehon, it's great, so easy to use, with so many sample code. Here is the site zehon.com: Secure FTP, FTP/SSL, SFTP, FTPS, FTP, SCP
# 3  
Old 11-04-2009
SFTP using zehon

I am trying to work on SFTP using zehon , but get this error

Code:
"at org.apache.commons.vfs.impl.DefaultFileSystemManager.setupComponent(DefaultFileSystemManager.java:429)
 at org.apache.commons.vfs.impl.DefaultFileSystemManager.setReplicator(DefaultFileSystemManager.java:388)
 at org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.commons.vfs.VFS.createManager(VFS.java:89)
 at org.apache.commons.vfs.VFS.getManager(VFS.java:51)
 at com.zehon.FileTransferClient.getFileObject(FileTransferClient.java:729)
 at com.zehon.FileTransferClient.resourceExist(FileTransferClient.java:573)"

Has anyone implemented using zehon? if yes could you please share ur experience?

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Programming

Java UI does not come up using txtContent.setLineWrap(true) API

Hello , I have code which runs on solaris using java 1.2.2 .. UI will not come up when i use the command "txtContent.setLineWrap(true);".. UI gets displayed if do not use it... ______________________________________________________ txtContent = new JTextArea(20,30); ... (0 Replies)
Discussion started by: shafi2all
0 Replies

2. UNIX and Linux Applications

Need the sample code for implementation of SFTP

Hi we need to implement SFTP through unix shell scripts. I have seen many posts, in which there is discussion about non-interactive,automated SFTP. Can anyone please send me the sample code for SFTP shell script. We are using SFTP to transfer the files from the host server to the target... (10 Replies)
Discussion started by: kumarm
10 Replies
Login or Register to Ask a Question