Enhance sftp protocol: get SHA hash of file

Philipp Marek philipp.marek at linbit.com
Wed Jun 29 21:04:59 EST 2011

On Wednesday 29 June 2011, Thomas Güttler wrote:
> This would make it possible to run a rsync like file transfer
> on sftp.
Well, this would work for append-only files; if bytes get inserted or 
deleted in the middle, you'd need a Manber-Hash like rsync uses.

But then you'd be reimplementing rsync anyway...

> To get the hash value of the whole file: STARTOFFSET=0 and BYTECOUNT=0
Better make that BYTECOUNT=-1, that's easier for divide-and-conquer 
strategies - and it works for the case when the file is zero bytes long, 



More information about the openssh-unix-dev mailing list