> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[email protected]] On Behalf Of Paul Gilmartin > Sent: Thursday, July 26, 2012 10:55 AM > To: [email protected] > Subject: Re: Using SSH or SCP in REXX under TSO > > On Thu, 26 Jul 2012 10:37:28 -0500, McKown, John wrote: > > > >No. sftp uses a separate SSH "subsystem" which does not do > the code translation. IIRC, sftp as distributed by IBM only > does a binary transfer. The Dovetailed Technologies > enhancments to z/OS sftp allows for code translation. And, in > addition, allows transfers to/from z/OS legacy data sets and > access to the JES SPOOL (get output and put, as in submit, jobs). > > > Thanks. I was unaware of that. > > >> ssh remote-host "cd wherever && tar -cf - ." | > tar -xvf - > >> > >> With EBCDIC, I'd need an iconv in the pipe. > > > >You mean to do the equivalent of a "binary" transfer? I > don't think you'd succeed. I almost never use ssh for file > transfer. I guess because I find scp easier, for me. > > > I take that as a challenge. > > >scp /wherever/* user@remote-host:/wherever/ > > > >On Linux, I've also done: > > > >cd /wherever; echo -e 'cd /wherever\nmput *\nquit\n' | sftp > user@remote; cd - > > > But will either of those do a recursive copy of an entire > directory hierarchy? > > >You cannot do ssh under TSO OMVS. That is documented by IBM > in the OpenSSH manual. The reason given on one of the forums > was the fact that there is no way to "nodisplay" what you > type in for the passphrase or password when running under TSO OMVS. > > > Another challenge? If my Rexx works from the ISPF command line, > I'd hardly expect it to fail from TSO OMVS. Need to try. > > I believe ftp (not sftp) successfully masks the password from the > TSO OMVS command line. There's a Rexx utility, getpass(prompt) > to do that. But years ago I submitted a PMR that neither "stty -echo" > nor the underlying syscall masked the command line for password > entry. IBM fixed stty but not the underlying syscall. Go figger. > > -- gil
On z/OS 1.12, I went into TSO MVS and tried to ssh to my Linux desktop: LIH1:TSH009:/home/tsh009$ ssh [email protected] FOTS1252 The SSH client cannot be run under OMVS. LIH1:TSH009:/home/tsh009$ sftp [email protected] Connecting to 189.169.89.69... FOTS1252 The SSH client cannot be run under OMVS. FOTS0841 Connection closed LIH1:TSH009:/home/tsh009$ ftp does indeed run from TSO OMVS. And it does _not_ show the user's password when typed in. I guess the TSO OMVS people fixed the non-display functionality (or lack thereof), but the ssh client still refuses to work from TSO OMVS. Perhaps a z/OS 1.13 person would like to try? -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * [email protected] * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
