Reply loop

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
BobO
Posts: 2
Joined: Tue Oct 03, 2017 3:56 pm

Reply loop

Post by BobO »

When I try to establish a SFTP session in a batch job (using OpenSSH keypairs), I receive the following messages:
"The authenticity of host 'test.test.loc (10.10.10.10)' can't be established.
Are you sure you want to continue connecting (yes/no)? "

Then the batch session repeats the following message (forever):
/usr/lpp/coz/bin/read_passwd_dsn.sh prompt: "Please type 'yes' or 'no': "

Is there a way to prevent this situation from occurring?
D#H
Posts: 7
Joined: Mon Feb 22, 2016 4:00 pm

Re: Reply loop

Post by D#H »

I wonder if the -b- option would change the behavior?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Reply loop

Post by dovetail »

You will need to post your JCL/script and output for assistance.

Also: what version are you running? There was a change several releases ago to read_passwd_dsn.sh so that it ignores this.

Finally: we recommend that you use the sample PROC/JCL/scripts for running CO:Z SFTP in batch:
https://dovetail.com/docs/sftp/client.h ... batch_samp
BobO
Posts: 2
Joined: Tue Oct 03, 2017 3:56 pm

Re: Reply loop

Post by BobO »

The solution to the problem was to have an interactive session and then answer the question. When the question is answered, an entry in the "authorized_keys" file will be updated. This interactive session will only need to be done once.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Reply loop

Post by dovetail »

I think that problem is with your script. I do not believe that you are using the correct options to tell IBM z/OS OpenSSH that you are running in batch.

Also, in this case the file that needs to be updated is "known_hosts", not "authorized_keys"
Post Reply