Connection closed by UNKNOWN by "known host"

General discussion of the Co:Z Toolkit
Post Reply
Randy
Posts: 16
Joined: Thu Jul 08, 2010 1:36 pm

Connection closed by UNKNOWN by "known host"

Post by Randy »

I am attempting to send three files to an AIX SFTP server. When I run without debug I get
Co:Z SFTP version: 1.9.0 (5.0p1) 2011-05-09
Copyright (C) Dovetailed Technologies, LLC. 2008. All rights reserved.
fromdsn(SYS1.COZ.FTPCNTL(DEC))[N]: 1 records/80 bytes read; 81 bytes written in ...
31 times, followed by
Connection closed by UNKNOWN
[66.189] Connection closed
CoZBatch[N]: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights res
CoZBatch[N]: version 1.9.0 2011-05-02
CoZBatch: executing default progname="-/bin/sh"
CoZBatch: returning rc=exitcode=255
.

CoZBatch 1.9 was last tested after I installed it after post z/OS 1.11 with Ported Tools 1.2. Since then I have applied z.OS RSU 1110 and seelcted PTFs for z114 support.

I have a debug run and can post the STDERR SYSOUT, I'm not sure what to look for but I do see this with each "fromdsn ..." msg.:
fromdsn(SYS1.COZ.FTPCNTL(DEC))[N]: 1 records/80 bytes read; 81 bytes written in 0.018 seconds (4.395 KBytes/sec).
debug3: packet_send2: adding 16 (len 94 padlen 18 extra_pad 64)

debug2: input_userauth_info_req

debug2: input_userauth_info_req: num_prompts 1

debug1: read_passphrase: can't open /dev/tty: EDC5128I NO SUCH DEVICE. (errno2=0x056201A9)

debug1: permanently_drop_suid: 0
followed by the next "fromdsn ..." msg., again 31 times and eventually get
fromdsn(SYS1.COZ.FTPCNTL(DEC))[N]: 1 records/80 bytes read; 81 bytes written in 0.001 seconds (79.102 KBytes/sec).
debug3: packet_send2: adding 16 (len 94 padlen 18 extra_pad 64)

Connection closed by UNKNOWN

[91.499] Connection closed


The SYSOUT is:
CoZBatch[N]: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights reerved.
CoZBatch[N]: version 1.9.0 2011-05-02
CoZBatch[D]: stdin file opened: //DD:STDIN
CoZBatch[D]: stdout file opened: //DD:STDOUT
CoZBatch[D]: stderr file opened: //DD:STDERR
CoZBatch[D]: region size requested = 4096K, Actual below/above limit = 7680K / 256000K
CoZBatch[D]: geteuid=0
CoZBatch: executing default progname="-/bin/sh"
CoZBatch[D]: spawning progname=/bin/sh
CoZBatch[D]: argv[0] = -/bin/sh
CoZBatch[D]: current environment:
CoZBatch[D]: >LIBPATH=/lib:/usr/lib:.<
CoZBatch[D]: >_EDC_ADD_ERRNO2=1<
CoZBatch[D]: >HOME=/u/vrh0<
CoZBatch[D]: >_BPX_SHAREAS=MUST<
CoZBatch[D]: >_BPX_SPAWN_SCRIPT=YES<
CoZBatch[D]: >_BPXK_JOBLOG=STDERR<
CoZBatch[D]: >PATH=/bin:/usr/bin<
CoZBatch[D]: spawned /bin/sh (83886166)
CoZBatch: returning rc=exitcode=255

I have checked my CoZBatch JCL against the sample in the User Guide. What am I missing?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Connection closed by UNKNOWN by "known host"

Post by dovetail »

The following message has to do with reading your password, which apparently is not valid.

fromdsn(SYS1.COZ.FTPCNTL(DEC))[N]: 1 records/80 bytes read; 81 bytes written in ...

based on the fact that the outline line is 81 bytes, I suspect that you have line numbers in 73-80.
Randy
Posts: 16
Joined: Thu Jul 08, 2010 1:36 pm

Re: Connection closed by UNKNOWN by "known host"

Post by Randy »

Yep, line numbers in the password record. Thanks for catching that! :)

I removed the line numbers and am now getting:
fromdsn(SYS1.COZ.FTPCNTL(DEC))[N]: 1 records/80 bytes read; 9 bytes written in 0.001 seconds (8.789 KBytes/sec).
Connection closed by UNKNOWN

[66.160] Connection closed
and
CoZBatch: returning rc=exitcode=255
The "fromdsn ..." line occurs 99 times before the "Connection closed ..." :?

When the password was invalid I used to get the "Could not log on to server DEC with current USERID & PASSWORD." message. Is this dependant on the target not CoZ: SFTP? I'm checking with the requestor for an expired or chnaged password.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Connection closed by UNKNOWN by "known host"

Post by dovetail »

I suggest that you connect to z/OS with an interactive ssh shell (e.g. PuTTY) and then try to connect with the cozsftp command to your server to test the connection and the password.
Randy
Posts: 16
Joined: Thu Jul 08, 2010 1:36 pm

Re: Connection closed by UNKNOWN by "known host"

Post by Randy »

Works now -- ID was reset and password reestablished. :D
No idea why we're no longer getting an invalid password message. :(
Post Reply