The syntax of the SCP call depends on the program being used. For PSCP, the syntax on the Windows CLI is:
- Sending files
pscp.exe -scp [-pw <Password>] <LocalFile> <User>@<IP-Address>:target
- Receiving files
pscp.exe -scp [-pw <Password>] <User>@<IP-Address>:target <LocalFile>
The target on the remote device is inserted after a colon following the IP address. The target is either a file name (see File Names for SCP File Transfer) in the internal file system of the device, or it is config, firmware or firmwarewithreset. The targets firmware and firmwarewithreset are reserved exclusively for importing firmware updates whereby the latter is followed by a configuration restart, while config is used for importing and exporting configuration files.