Tectia

Using scpg3

scpg3 (scpg3.exe on Windows) 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.

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).