This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SFTP connection  RSS feed

 
Vinoy Paul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All ,

How java can get the connection from SFTP with out using third party jar files.
 
Tim Moores
Saloon Keeper
Posts: 3682
78
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd have to implement it yourself, which would be quite a project. What would be the point of avoiding 3rd party libraries?
 
Vinoy Paul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Tim , No harm , was just trying to find out  is there any option Java can support it without third party Libs .

My actual requirement is to convert all my application connections from FTP to SFTP.

So in my current code we are currently using as below .

FTPClient ftp = new FTPClient();
ftp.sendSiteCommand("recfm=fb lrecl=2140 blksize=0 mgmtclas=workw");

Could not find out any this or similar method for sendSiteCommand(). How we can achieve this ?
 
Paul Clapham
Sheriff
Posts: 22215
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinoy Paul wrote:hi Tim , No harm , was just trying to find out  is there any option Java can support it without third party Libs .


If those SFTP libraries were written in Java then it should be obvious that code to support SFTP can be written in Java.
 
Tim Moores
Saloon Keeper
Posts: 3682
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SFTP is a completely different protocol than FTP. Code written to use one does not help using the other.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!