COZBATCH askpass

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
morph797
Posts: 3
Joined: Thu Apr 07, 2011 10:00 am

COZBATCH askpass

Post by morph797 »

I am on z/os v2.2 and I am trying to connect to a server using SSH.

This is the STDIN:

//STDIN DD *
remoteuser="filetransfer"
server="10.xx.xx.xx"
cozsftp $ssh_opts -vvv -b- $remoteuser@$server <<EOB
lzopts mode=text
lpwd
pwd
EOB

The customer says we must use ID & Password. I have read the askpass info but I am not sure
how to set it up. What needs to be updated and is this askpass provided or is it something that needs to be written.
What OMVS/USS files need to be updated and what other changes need to be done for STDIN ?

Thank You
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: COZBATCH askpass

Post by dovetail »

Please refer to: https://dovetail.com/docs/sftp/client.html#client-batch

The sample JCL and scripts here show how to use passwords with Co:Z SFTP
Post Reply