Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Java API for connecting to SFTP server

 
Udayakumar Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 196
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 196
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
j-ftp claims to be able to handle SFTP.
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'll have to check that one out. Thanks.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Report post to moderator
My preference is VFS, then you can abstract where it is and no longer care.

http://jakarta.apache.org/commons/vfs/filesystems.html
 
Udayakumar Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
    Bookmark Topic Watch Topic
  • New Topic