Under MVS
The jobs SCP2, SCP2GET, SCP2GET2, and
SCP2PUT in SAMPLIB describe file transfers with
mainframe scp2 client to a remote host that is running a Secure
Shell server (see Appendix
SCP2,
SCP2GET,
SCP2GET2, and
SCP2PUT).
User interaction is not available when using JCL. Set up the user for
unattended use with a public key (Section Using Public-Key Authentication). If the user
has set up public-key authentication to localhost, SCP2GET2
file transfer without a separate staging step can be used.