• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote File integrity

 
Arun Suresh
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have been checking the file integrity(calculating SHA1 cheksum) of tar files in linux server in my java code by using linux sha1sum.

Now i have to implement the same for tar files stored in remote SFTP servers (eg freeFTPd or linux native) without copying them to this server or streaming them to stdin.
I can do it after copying or by streaming to stdin of this server.but any method in which i can remotely do it?
any pointers?

Thanks
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no way to do this remotely that I can think of .
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have sftp access, then you probably have ssh access. Connect with ssh, and run the "sum" command (or any other command of your choosing) on the file.
 
Arun Suresh
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the help.

connecting ssh on linux SFTP server is fine. but i need to support windows SFTP server also. how do i run any command remotely on files in that location?

any help is appreciated.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic