How is it possible to convert CRLF line endings to LF line-endings when uploading a file from Windows to Linux/Unix?
One possibility is to add ", textMode" to the createDisposition argument of the sftp.OpenFile method. For example:
bool success = sftp.OpenFile("something.txt","readWrite","openOrCreate, textMode");
This assumes the server pay attention to the "textMode" disposition and implements it. Otherwise, the solution is to convert the CRLF to LF line endings prior to upload.