Alan Altmark writes:
> 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.

Here's some more rather surprising behaviour, using just ssh:
        thinkpad% echo -n ABC | ssh zos 'od -t x1'
        0000000000    C1  C2  C3
        0000000003
So the three bytes (0x41, 0x42, 0x43) sent by the ssh client end up
being read on stdin by od as 0xc1, 0xc2, 0xc3, i.e. converted from
ASCII to EBCDIC. There's no scp there, just a stream of bytes to move
around.

--Malcolm

--
Malcolm Beattie <[EMAIL PROTECTED]>
Linux Technical Consultant
IBM Europe System z

----------------------------------------------------------------------
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