--- title: SCPRelay probe description: The SCP Relay Probe copies a single file or the contents of a directory from one host to another, using the MID Server as a relay. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/discovery/r\_SCPRelayProbe.html release: australia product: Discovery classification: discovery topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [List of Discovery probes, Discovery probes and sensors, Using Discovery, Discovery, ITOM Visibility, IT Operations Management] --- # SCPRelay probe The SCP Relay Probe copies a single file or the contents of a directory from one host to another, using the MID Server as a relay. The SCP Relay probe uses the same parameters as SSHCommand. Commands can be sent in or out of the context of a terminal \(tty\), and with or without sudo. Some commands, such as lsof, require being executed in the context of root to return the required information. When commands are sent in the context of a terminal, the path is automatically widened to include a set of default paths. You can further widen the path with the path\_override parameter. If the target machine is the local machine, SSH is not used; instead, a local shell is run to execute the command. For instructions on configuring probe parameters, see [Set probe parameters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/t_SetProbeParameters.md). The following parameters may be passed to the SCP Relay probe:
Parameter Description Default Value
debug Enables debug logging. false
debug\_ssh Enables J2SSH debug logging **agent.log** **Note:** This log file can grow quickly and should be disabled when not needed. false
timeout Sets the socket connection timeout, in ms. 60000
path\_override Overrides the default paths set before executing a command. none
keyboard\_interactive If true, forces the use of keyboard\_interactive SSH login mode. false
must\_sudo If true, forces the command to be executed through sudo. false
run\_in\_terminal If false, disables SSH commands from running in an SSH terminal \(this will break many commands\). true
long\_runner If present, indicates a long-running SSH command. false
set\_path If false, disables setting the path environment variable before running the command. true
rm\_override If present, overrides the default rm command \("/sbin/rm -f"\) with the provided value. none
source Source host or IP to copy from. required
source\_port SSH port on the source \(defaults to 22\). required
from\_file Name of the file to copy from the source. required
target Target host or IP to copy to. required
target\_port SSH port on the target \(defaults to 22\). required
to\_file Name of the file to copy to the target. required
**Parent Topic:**[List of Discovery probes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/r_ListOfDiscoveryProbes.md)