SSH problem contacting AIX server from batch job

Discussion of the COZBATCH utility for z/OS
Post Reply
chevulan
Posts: 1
Joined: Tue Sep 04, 2012 11:26 am

SSH problem contacting AIX server from batch job

Post by chevulan »

Hi, I am trying to invoke a remote SSH script on an AIX server from my z/OS batch job. I am running into a strange error.

Here is the JCL (actually PROC).
//ISC0001P PROC
//*
//****************************************************************
//*PULLS SMRVNDT FILE FROM JUDICIARY FTP SERVER - COMMON FOLDER
//****************************************************************
//PSTEP01 EXEC PGM=COZBATCH
//STEPLIB DD DSN=TP.COZ152.LOADLIB,DISP=SHR
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STDIN DD DSN=JUACHE0.SOAP.PARMLIB(ISPARM1),DISP=SHR
//DOWNLOAD DD DSN=JUACHE0.FILE,
// DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=80000),
// SPACE=(TRK,(10,5),RLSE)
//*

Here is the ISPARM1
remoteuser="zzzz"
export PASSWD_DSN="//JUACHE0.SOAP.PARMLIB(ISPARM2)"
coz_bin="/u/coz/coz-1.5.2/bin"
server="x.x.x.x"
servercp="ISO8859-1"
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
ssh_opts="-oBatchMode=no"
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no"
ssh_opts="$ssh_opts -oPort=22"
set -A RESOLVER_TRACE
ssh $ssh_opts -vvv -b- $remoteuser@$server <<EOF
env
EOF



Here is the output...
OpenSSH_5.0p1, OpenSSL 0.9.8k 25 Mar 2009
FOTS2267 Pseudo-terminal will not be allocated because stdin is not a terminal.
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: Seeding PRNG from /usr/lib/ssh/ssh-rand-helper
debug1: zsshSmfSetConnSmfStatus: SMF status is 0
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug2: ssh_connect: needpriv 0
debug1: Connecting to x.x.x.xxx .x.x.x.xxx. port 22.
debug3: __catgets: NLS setup complete (1), using message catalog openssh.cat
FOTS1301 getaddrinfo: -: EDC9501I The name does not resolve for the supplied parameters.
debug3: __catgets: NLS setup complete (1), using message catalog openssh.cat
FOTS2204 ssh: connect to host x.x.x.xxx port 22: EDC5129I No such file or directory. (errno2=0x053B006C)

Your help is greatly appreciated.
Thanks
Nagarjun Chevula
nags_chevula@us.ibm.com
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: SSH problem contacting AIX server from batch job

Post by dovetail »

Please refer to the FOTSxxxx messages (from IBM Ported Tools OpenSSH). These seem to indicate that there might be a problem with your z/OS Comm Server configuration.
Post Reply