Your browser does not allow this site to store cookies and other data. Some functionality on this site may not work without them. See Privacy Policy for details on how we would use cookies.

SSH Tectia

Using scpg3

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 without the user@system: prefix. Relative paths can also be used, they are interpreted in relation to the user's home directory.

SSH 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 variable SSH_SFTP_HOME_MVS in the user's $HOME/.ssh2/environment file on the server can be used to control this location.

Windows paths should be preceded by a slash ("/"). For 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).

===AUTO_SCHEMA_MARKUP===