Re: The same thing happens with SCP protocol
The same thing happens with SCP protocol, all the lines with a single LF character get the CR added for Windows, which in most cases is a good thing.
However if you need the file to be maintained exactly character for character for version control systems it is a pain.
So you want to maintain the file binary the same? Then you need to turn force binary transfer mode.