• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

SFTP connection

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi All ,

How java can get the connection from SFTP with out using third party jar files.
 
Bartender
Posts: 7488
171
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 27527
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 7488
171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SFTP is a completely different protocol than FTP. Code written to use one does not help using the other.
reply
    Bookmark Topic Watch Topic
  • New Topic