Hello,

I have success in authentication  between mainframe and target system. The
problem was, that the RSA.pub key i copied from Mainframe to target system
was corrupt and because of this handshake was not happening correctly. Now
I am getting below error while running JCL,

//SFTP001 JOB ACCT,NAME,CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID

//SFTP     EXEC PGM=IKJEFT01,REGION=0M

//SYSTSPRT DD   SYSOUT=*

//SYSEXEC  DD   DISP=SHR,DSN=SYS1.SBPXEXEC

//SYSTSIN  DD   *

OPUT 'IBM08.TEST.DATA' '/u/ibm08/test'

OSHELL { echo 'cd /tmp'; +

         echo 'ascii'; +

         echo 'put /home/ibm08/'; } | +

       sftp -b - -v [email protected]

/*





ERROR I am getting is,



debug1: Authentications that can continue: publickey,password,keyboard-in
teracti

debug1: Next authentication method: publickey


debug1: Offering RSA public key: /u/ibm08/.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 10.221.129.10 (Ý10.221.129.10¨:22).


debug1: channel 0: new Ýclient-session¨


debug1: Requesting [email protected]


debug1: Entering interactive session.


debug1: Sending subsystem: sftp


Connected to 10.221.129.10.


debug1: Reading configuration data /etc/ssh/zos_ssh_config


sftp> cd /tmp


sftp> ascii


Sets the file transfer type to ASCII.


sftp> put /home/ibm08/


*FOTS0885 stat /home/ibm08/: EDC5129I No such file or directory.
(errno2=0x059400*

debug1: client_input_channel_req: channel 0 rtype exit-status reply
0

debug1: channel 0: free: client-session, nchannels
1

debug1: fd 0 clearing O_NONBLOCK


debug1: fd 1 clearing O_NONBLOCK


debug1: fd 2 clearing O_NONBLOCK


Transferred: sent 3368, received 2240 bytes, in 0.0
seconds

Bytes per second: sent 148128.8, received 98518.0


debug1: Exit status 0

I have verified that /home/ibm08 directory exist in target system but still
getting this issue. Now,  I am working towards to solve this issue.



On Sun, Dec 11, 2016 at 10:20 PM, Paul Gilmartin <
[email protected]> wrote:

> On Sun, 11 Dec 2016 08:26:28 +0300, venkat kulkarni wrote:
> >
> >1)connect zos using ssh was working fine from putty but when I try from
> USA
> >to do ssh to ssh -v 127.0.0.1 then after it was to confirm me to continue
> >and I reply yes then at last it says password may not be entered from 3270
> >console.
> >
> Stay off the 3270!  Use a real terminal.
>
> (But I've discovered a back door.  Under "script" on a 3270 the rule is
> bypassed.)
>
> >2) under uss /etc/ssh/ssh_config
> >I uncommented and modified line to
> >Identityfile /home/ibm08/.ssh/authorized_keys
> >And bring down SSH and started back.
> >
> That's a user function.  You shouldn't need to restart SSH.
>
> Have you used ssh-keygen to set up your keys?
>
> -- 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