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?
Reply loop
Re: Reply loop
I wonder if the -b- option would change the behavior?
Re: Reply loop
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
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
Re: Reply loop
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.
Re: Reply loop
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"
Also, in this case the file that needs to be updated is "known_hosts", not "authorized_keys"