scpg3 is used to securely copy files over the network. scpg3 uses ssh-broker-g3 to provide a secure transport using the Secure Shell version 2 protocol. The remote host(s) must be running a Secure Shell version 2 server with the sftp-server (or sft-server-g3) subsystem enabled.
The basic syntax of scpg3 is:
scpg3 user@source:/directory/file user@destination:/directory/file
scpg3 can be used to copy files in either
direction; from the local system to the remote system or vice versa. Copies
between two remote hosts are also permitted. Local paths can be specified
user@system: prefix. Relative paths
can also be used, they are interpreted in relation to the user's home
Tectia Server for IBM z/OS uses the user's Unix System Services (USS) home
directory as the default file transfer home location. The environment
SSH_SFTP_HOME_MVS in the user's
$HOME/.ssh2/environment file on the server can be used to
control this location. For more information, see File Transfer Environment Variables for the Clients.
Windows paths should be preceded by a slash ("
example, copying a local file to a remote Windows server:
scpg3 localfile user@destination:/C:/directory/file
For more information on the command-line options, see scpg3(1).