LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2013, 12:18 AM   #1
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 583

Rep: Reputation: 72
sftp Binary mode vs. ASCII mode


Hi all,

I tried searching the web for any answers but the more I read, the more confused I get. So, I am asking my Linux folks this.

I would like to understand the difference between Binary mode and ASCII mode transfers for SFTP (aka SSH File Transfer Protocol, aka Secure File Transfer Protocol).

Also, I'd like to know if the OS differences between clients and server (ex. Windows to Linux, Unix to Windows) is significant to my question. I was thinking that RFC implementation is different on these OS's.

Speaking of RFC, i tried to read RFC4521, but I don't think I saw any quote on the comparison.

Can you please help me out on this?

As a background, I am trying to help some colleagues who currently encounter an issue with some files being sent back and forth between independent systems.

Thanks all!
 
Old 09-06-2013, 01:19 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
https://startpage.com/do/search?q=ft...mode+and+ASCII

both the first and second hit seem to answer it well

http://www.serv-u.com/newsletter/NewsL2008-03-18.asp
http://serverfault.com/questions/110...binary-vs-auto

it looks like ASCII mode will 'convert' text to the appropriate EOL/EOF ( etc. ) for the receiving OS

Binary gives you an exact copy, regardless of OS
 
Old 09-06-2013, 03:10 AM   #3
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 583

Original Poster
Rep: Reputation: 72
Hmmmm

So in short, if I transfer txt files, I should use ASCII mode. But if I transfer non-text (aka Binary) files, I should use Binary mode. Is this correct?
 
Old 09-06-2013, 03:24 AM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
depends on what you want..

Quote:
As a background, I am trying to help some colleagues who currently encounter an issue with some files being sent back and forth between independent systems.
going of that I suspect you want/need to use binary, so they get exact copies regardless of OS

my guess is they currently have 'auto' and it is messing up text files for when they need some script or other to process them
 
  


Reply

Tags
ascii, binary, linux, sftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
c++: text-mode vs binary mode hydraMax Programming 8 03-07-2013 09:45 AM
USB printing in ASCII-Mode ? nathan2225 Linux - General 1 05-17-2007 01:53 AM
Can Solaris run in ASCII mode?? as400 Solaris / OpenSolaris 2 01-16-2007 04:12 PM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 10:36 AM
ASCII mode in Xwindow... Red Guy Linux - Newbie 4 06-01-2002 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration