---
sourceDocument: Yokohama ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/servicenow-platform

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Secure Copy activity

# Secure Copy activity {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Secure Copy activity copies a file from one host to another, without storing the
copied file on the MID Server.
This activity replaces an SSH activity by the same name available
in releases prior to Geneva. If you have a workflow created in a previous version that uses
the deprecated activity, your workflow will continue to work normally after upgrading to
Geneva. However, all new workflows must use the custom version of this activity. This
activity was built with the [SSH activity designer template](https://www.servicenow.com/docs/Voy9bPRPpW7WXHb_WtSf9w#t_CreateAnSSHActivity "Create an activity that extracts data from a target host that uses the SSH network protocol."), which gives workflow administrators the ability to
store input and output variables in the [databus](https://www.servicenow.com/docs/PrNTwrqX9mIH_QHC_03Elg#t_ReuseDataInTheActivityDesigner "The Data tab in the Workflow Editor lists all custom activities used in the current workflow that produce data and displays that data for reuse in other custom activities.").{#r_SecureCopyActivity__p_DeprecatedActivity}

## Input variables

{#r_SecureCopyActivity__table_k4g_y11_1q__entry__2}

| Input variable | Description |
|-|-|
| from_host | Host name or IP address of the source machine. |
| from_scp_file | Name of the file to copy, including the absolute path. |
| to_host | Host name or IP address of the target machine. |
| to_scp_file | Path to the target file. This path can be absolute or relative to the logged in user's home directory. |
| debug_mid | Check box that enables debug logging when selected. |
| debug_ssh | Check box that enables J2SSH debug logging when selected. |
[Table 1. Secure Copy input variables]

{#r_SecureCopyActivity__table_k4g_y11_1q}

## Output variables

{#r_SecureCopyActivity__table_bsj_mg5_2s__entry__2}

| Output variable | Description |
|-|-|
| payload | The executionResult.payload from the [Activity designer parsing sources](https://www.servicenow.com/docs/5fX1CXeRKshOet1fu0DglA#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). |
| output | The executionResult.output from the parsing sources. |
[Table 2. Secure Copy output variables]

{#r_SecureCopyActivity__table_bsj_mg5_2s}

## Conditions

{#r_SecureCopyActivity__table_rpb_zlq_rt__entry__2}

| Condition | Description |
|-|-|
| Success | Activity successfully copied the file from one host to another. |
| Failure | Activity failed to copy the file from one host to another. |
[Table 3. Secure Copy conditions]

{#r_SecureCopyActivity__table_rpb_zlq_rt}

