> For the complete documentation index, see [llms.txt](https://ism-docs.xnarum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ism-docs.xnarum.com/ism-admin-ui/channel/sftp.md).

# sFTP

Sftp manages jobs related to files transferred to ISM sFTP server. ISM provides bundled sFTP server. The users are managed through Admin/sFTP User menu. The users of this sFTP are not the system user but sFTP only user.

Once a file arrives at ISM sFTP server, sFTP server checks whether the file matches registered job trigger. If a matched job is found, the linked flow is executed.

&#x20;

<figure><img src="https://support.xnarum.com/download/manuals/ISM-Manual-2023.fld/image060.png" alt=""><figcaption></figcaption></figure>

&#x20;

<table><thead><tr><th width="179">Name</th><th>Description</th></tr></thead><tbody><tr><td>Job Name</td><td>Name of the job</td></tr><tr><td>User</td><td>Sftp user</td></tr><tr><td>Directory</td><td>The directory to check files</td></tr><tr><td>File</td><td><p>Target file. Wildcard (*) can be used.</p><p>For example, *.sh can be used.</p></td></tr><tr><td>Job Type</td><td><p>Flow - execute a flow.</p><p>Script - execute a batch script file.</p></td></tr><tr><td>ID</td><td>Flow ID</td></tr></tbody></table>

&#x20;

<figure><img src="https://support.xnarum.com/download/manuals/ISM-Manual-2023.fld/image061.png" alt="" width="563"><figcaption></figcaption></figure>

The port and directory for sFTP is configured in properties/sftp.config.yml file.

This file contains these properties.

<table><thead><tr><th width="198">Name</th><th>Description</th></tr></thead><tbody><tr><td>port</td><td>sFTP listening port</td></tr><tr><td>root-directory</td><td><p>sFTP root directory.</p><p>All the user directories are created under this root directory.</p><p>Default directory is data/sftp.</p></td></tr></tbody></table>

When a file is transferred, these two parameters are generated and passed to the flow.

<img src="https://support.xnarum.com/download/manuals/images/sftp-parameters.png" alt="" width="563">

Those values are wrapped in sftp parameter.

<img src="https://support.xnarum.com/download/manuals/images/sftp-parameters-result.png" alt="" width="563">

Additional parameters can be configured and passed too.
