Page 1 of 1

SFTP File Transfer ASCII Not working

Posted: Tue Aug 17, 2010 6:15 pm
by smandadi
While transferring files via SFTP, getting into an issue regarding the line endings.
Moving a file from windows to AIX unix SFTP Server....

Have tried all options, auto, ascii, binary, and image, The same files, under the same conditions, but over FTP will transfer fine using the ascii option.

Re: SFTP File Transfer ASCII Not working

Posted: Wed Oct 19, 2016 5:36 am
by sreejith
smandadi wrote:
While transferring files via SFTP, getting into an issue regarding the line endings.
Moving a file from windows to AIX unix SFTP Server....

Have tried all options, auto, ascii, binary, and image, The same files, under the same conditions, but over FTP will transfer fine using the ascii option.

Please suggest how to resolve the above mentioned issue , We too face the same.

The format is not proper, extra white spaces are appearing at the end of each line while transferring via SFTP, please advise how can I force ASCII for SFTP transfer.

Re: SFTP File Transfer ASCII Not working

Posted: Wed Oct 26, 2016 8:04 am
by Support_Rick
SFTP is a binary transfer. Meaning, it doesn't convert during transfer. What goes in, goes out.

You either have to modify the file (modify LINEFEED to CARRIAGE RETURN/LINEFEED) or vice versa before you send it, or after you receive it. Review the task "Search and Replace". Search for LF(hex) and replace with CRLF(hex).