Article View: comp.security.ssh
Article #25Re: z/os scp expects text files? I thought scp was binary only?
From: Stuart Holland
Date: Sun, 26 Feb 2006 09:23
Date: Sun, 26 Feb 2006 09:23
28 lines
2565 bytes
2565 bytes
tonij67@hotmail.com wrote: > Wierd problem going on here: > > I need to transfer files to a OS/390 machine from a Solaris machine. I > use scp for a whole lot of transfers every day with no problems so it > seems like the obvious choice. (I am using OpenSSH 4.3p2) We have > been having problems in that every time we send a ZIP file to this z/os > system, they are unable to decompress it. i.e. its corrupted. > > I can send zip files to every other machine on our network, and even a > few machines on *their* network, all different platforms. The only one > that has issues is this one OS/390. I suggested they investigate the > verison of SSH they are running and they told me that scp expects all > files to be text, so the only way for this to work is for us to use > sftp instead of scp. > > So I am just scratching my head here...all of the reading I have done > has lead me to believe that scp doesnt even *HAVE* a text/binary mode, > that its always binary. > > Anyone have any idea what gives here? > The IBM Ported Tools User's Guide states that scp assumes files are text. Files copied between EBCDIC and ASCII platforms are converted. On the other hand, sftp assumes they are binary. If it is invoked on the z/OS side, there is an ASCII subcommand (just like for an ftp client) to tell it to do text conversion. Most platforms don't have that subcommand.
Technical Details
Message-ID:
<useMf.1900$3W5.1366@trnddc02>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!atl-c05.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc02.POSTED!1dbba293!not-for-mailReferences:
<1140822140.499560.206740@e56g2000cwe.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 109d1b,3fdb708d1ca68a22 X-Google-Thread: fd4af,3fdb708d1ca68a22 X-Google-Attributes: gid109d1b,gidfd4af,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!atl-c05.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc02.POSTED!1dbba293!not-for-mail From: Stuart Holland <ted012@hotmail.com> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.security.ssh,bit.listserv.ibm-main Subject: Re: z/os scp expects text files? I thought scp was binary only? References: <1140822140.499560.206740@e56g2000cwe.googlegroups.com> In-Reply-To: <1140822140.499560.206740@e56g2000cwe.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 28 Message-ID: <useMf.1900$3W5.1366@trnddc02> Date: Sun, 26 Feb 2006 09:23:38 GMT NNTP-Posting-Host: 71.104.37.180 X-Complaints-To: abuse@verizon.net X-Trace: trnddc02 1140945818 71.104.37.180 (Sun, 26 Feb 2006 04:23:38 EST) NNTP-Posting-Date: Sun, 26 Feb 2006 04:23:38 EST