I tried with BPXBATCH and key exchange failed (public key , password)


On Wed, 3 Dec 2025, 13:04 David Frenzel, <[email protected]>
wrote:

> Hi Peter,
>
> I don't have a JCL but a couple of thoughts on this.
>
> SFTP works via SSH. The default supplied by IBM doesn't support data set
> access as part of SFTP. You can only access files and directories in USS.
> You would have to copy from the data set to a file, convert the encoding
> (if required) and then SFTP to your target destination.
> There are third party products out there that also support data set access
> through SFTP.
> If you have DSFS configured on your system, you may try to use DSFS
> together with SFTP. I haven't tried it but it may/should work. That way you
> can save the copy.
> Either way, you would be coding a BPXBATCH/shell script.
>
> FTPS (which doesn't use SSH under the covers, but regular FTP) supports
> data set access just like FTP does. If that's an option, it's a bit easier
> to access data sets directly. It depends whether your partner system
> supports FTPS at all.
>
> Host key verification should ideally be done manually: During the initial
> setup process, you get the host key(s) from the partner system and add them
> to the known_hosts file on z/OS.
> On that note: DNS has the option to save host keys using the SSHFP record
> set. Unfortunately, not many people use it. But that way you can actually
> refer back to DNS for the host key. (This requires the partner system to
> publish their host keys to DNS.) I think it's an underrated feature and
> should be used way more ;-)
>
> HTH
>
> Cheers - David
>
> ----------------------------------------------------------------------
> 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