Gil,

This is a good suggestion (start with a z/OS ssh shell session, where
password prompts work).   I very rarely use the TSO OMVS shell.

But:    starting in z/OS P.T. OpenSSH 1.3 (HOS1130), you *can* use ssh,
sftp, scp from a 3270 OMVS shell - you just can't prompt the terminal for a
password or passphrase since it is not a real tty and OpenSSH requires tty
password masking.

For example, with a public key from a 3270 "TSO OMVS" shell:

==> ssh -v 127.0.0.1
...
debug1: Next authentication method: publickey

debug1: Offering RSA public key: /u/kirk/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279

debug1: read PEM private key done: type RSA

debug1: Authentication succeeded (publickey).

Authenticated to 127.0.0.1 ([127.0.0.1]:22).

debug1: channel 0: new [client-session]

debug1: Requesting [email protected]

debug1: Entering interactive session.

you have mail in /usr/mail/KIRK.



Kirk Wolf
Dovetailed Technologies
http://dovetail.com

PS> Here's an old SHARE presentation on z/OS Ported Tools OpenSSH 1.3 new
features:
https://dovetail.com/docs/coz/SHARE_OpenSSH_Seattle_2015.pdf

On Wed, Dec 7, 2016 at 10:41 AM, Paul Gilmartin <
[email protected]> wrote:

> On Wed, 7 Dec 2016 10:58:02 +0530, venkat kulkarni wrote:
>
> >Hello John,
> >Sorry for delay in response and I tried the JCL you suggest for sftp
> >transfer but getting below issue on job output
> >
> >debug1: Authentications that can continue:
> >publickey,password,keyboard-interacti
> >
> First, partition the problem.  Put the JCL aside and get the process
> working
> with keys using a real terminal (3270 absolutely won't work).
>
> Then try wraping the process in a batch job.
>
> -- 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