On Tuesday, 02/20/2007 at 10:13 CST, "McKown, John"
<[EMAIL PROTECTED]> wrote:
> Is there any definative documentation, such as an RFC, which states how
> scp handles the files that it transfers? In particular, I have the
> Cygwin scp on my Windows XP system. I am running IBM's "Ported Tools"
> version of OpenSSL and SSHD server on z/OS 1.6. When I do a simple:
>
> scp file [EMAIL PROTECTED]:file
>
> The contents of the file on z/OS has automagically been converted from
> ASCII to EBCDIC. This just seems __wrong__ to me.

Start with RFC 4251, the Secure Shell Protocol Architecture.  It will lead
you to other RFCs.  ssh data transfer has no concept of "text" or
"binary".  It just moves bytes around.

According to the current IBM Ported Tools for z/OS User Guide, z/OS
assumes that scp refers to text data and that sftp refers to binary data.
If you run the scp client in verbose mode, I think it will tell you excaly
what command it is issuing (a form of ssh[1]).

FWIW, I've seen web browsers explicitly set "binary" mode on an ftp:// URL
because they *assume* that all data everywhere is represented the same
way.  :-(

Alan Altmark
z/VM Development
IBM Endicott

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to