Gil,

You've mentioned this before, where you are essentially are doing
back-to-back translations in order to get  binary command redirection over
z/OS ssh.
Again, I'll mention that you can also use the "ChannelConvert" option to
get binary command channels:

pax -wvXzE -pe -x pax * | \
    ssh -p 922 -oChannelConvert=shell [email protected] \
     "cd /my/dir && pax -rzE -pe"

*Note:* since you want both sides to use binary channels for "command"
redirection, you need to run a separate copy of SSHD on the remote z/OS
system on an alternate port that has "-oChannelConvert=shell".
In cases where the remote side is not z/OS, you can just set channelConvert
on the client and use it to pipe binary stdin/stdout from z/OS to the
server.




On Mon, Apr 15, 2019 at 12:05 PM Paul Gilmartin <
[email protected]> wrote:

> On 2019-04-15, at 10:40:11, Matt Hogstrom wrote:
>
> >
> https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.foto100/fotz112.htm
> <
> https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.foto100/fotz112.htm
> >
> >
> > SSH on z/OS for USS assumes text and does conversion.  If your
> transferring files you have to use sftp instead.  scp does translation
> which is frustrating.
> >
> A nuisance when I must do:
>     ( cd source && pax -w . ) |
>         ssh gil@MVS "cd target && iconv -f IBM-1047 -t ISO8859-1 | pax
> -vr"
>                                   <^^^^^^^^^^^^^^Grrr^^^^^^^^^^^^>
> ("ObSamuel Johnson "Dog walking")
>
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to