Take a look at the z/OS OpenSSH User's Guide documentation for:
ssh options:
- ProxyCommand
- ProxyUseFdPass
command:
- ssh-proxyc (in z/OS V2R4, if you have a prior release you can get it
from https://dovetail.com/community.html )
I don't know what kind of proxy you are referring to, but the ssh-proxyc
command provides for navigation of a simple SOCKS5 proxy.
For example:
//SFTPCONN EXEC PROC=SFTPPROC
//SFTPIN DD *
user=myuser
host=myhost.myco.com
lzopts="mode=text"
rfile="/app/data/remotefile.txt"
sftp_opts="$sftp_opts -oProxyUseFDpass=yes"
sftp_opts="$sftp_opts -oProxyCommand='ssh-proxyc 192.168.0.50:1080 %h %p' "
. $script_dir/sftp_connect.sh <<EOB
lzopts $lzopts
get $rfile //DD:MYDD
EOB
//MYDD DD DSN=COZUSER.SFTPGET.DATA,DISP=(MOD,KEEP),
// DCB=(LRECL=80,RECFM=FB),SPACE=(CYL,(3,1))
//
Kirk Wolf
Dovetailed Technologies
http://dovetail.com
On 4/28/21 5:24 PM, Bill Giannelli wrote:
How do specify a proxy server in JCL for SFTP executing BPXBATCH?
thanks
Bill
----------------------------------------------------------------------
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