aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Java API for connecting to SFTP server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply locked New topic
Author

Java API for connecting to SFTP server

Udayakumar Reddy
Greenhorn

Joined: Mar 24, 2006
Posts: 7
I am working on FTP uploading and downloding using JAVA.
But the user names and passwords are not secured when I use this
FTP process the user name and passwords are dispaling in normal text.

I read that SFTP will transmit the data in secured manner and it will
encrypt the passwords also.

Now I need an API which supports SFTP or any java program.
I will be glad if it(API) is open.

Thanks in advance

Reddy
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
If you mean sftp (ftp based on ssh) then check out jsch from
jcraft. If you mean ftps (ftp over ssl) then there is a commercial
api from jscape (www.jscape.com), but I do not know of any free
ones.
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
Also, you can not use either of these with a server that has only
an ftp server. The machine you wish to communicate with, must also
have ssh installed for sftp or a SecureFTP server installed for ftps.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
j-ftp claims to be able to handle SFTP.


Ping & DNS - updated with new look and Ping home screen widget
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
I'll have to check that one out. Thanks.
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
My preference is VFS, then you can abstract where it is and no longer care.

http://jakarta.apache.org/commons/vfs/filesystems.html


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Udayakumar Reddy
Greenhorn

Joined: Mar 24, 2006
Posts: 7
Hi,

I have found an API j2ssh which is free and I am working on that but I am getting a lot of errors. I think it will work for SFTP.

I am working on that.If anyone of u gone through it please guide me.

Thanks in advance.

Reddy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java API for connecting to SFTP server
 
Similar Threads
File Transfer
FTPSClient - Connection timed out exception
How to achieve secured data transfer through FTPS/SFTP
sftp
SFTP in unix shell script