Articles on: Shopify

SFTP connection method

Connect your supplier's secure SFTP server to syncX: Stock Sync to automate encrypted catalog imports and inventory updates over an SSH data stream. Configuring SFTP access ensures safe file transfers with SSH key support and automated post-sync file management.


Available on: ✔️ Add | ✔️ Update | ✔️ Export



How to Set Up an SFTP Connection


Go to App → Create new feed → Select connection → Step 1: Feed manager → SFTP


  1. Enter Login Credentials: Fill in your SFTP Username and Password in the required fields.
  2. Add SSH Key (If Required): Retrieve the public or private SSH Key in PEM Format from your SFTP provider and paste it into the SSH Key field.


SFTP Credentials and SSH Key Configuration


  1. Specify SFTP Host and Port: Enter your SFTP source host starting with sftp:// (for example, sftp://vendor.com:22, sftp://ftp.vendor.com, or 112.2.1.150). The default SFTP port is 22 unless your provider specifies otherwise.
  2. Enter Directory and Filename: Specify the exact folder path and file name where your feed is stored (for example, /public_html/project/data/inventory.csv).
  3. Select After Process Action: Choose what happens to your source file on the SFTP server after a sync completes (Do Nothing To My File, Append Date To My File, Rename My File, or Delete My File).
  4. Configure File Format and Header: Leave File Format set to Auto (or select your specific format manually), and enable First Row Header if row 1 of your file contains column headers.
  5. Whitelist IP and Test Connection: Whitelist Stock Sync's static IP address (52.20.189.51) on your server and test the connection.


Looking to export product data in XML format via SFTP? Learn more here.


If your feed filename includes a dynamic timestamp or date pattern, click here to configure wildcard and dynamic date variables.



SFTP Connection Detailed Breakdown


1. SFTP Host & Port Syntax

For SFTP connections, always prefix your host address with sftp:// (do not use https://). The standard SFTP port is 22 unless your server administrator provides a custom port number.


To include a custom port number, append it directly to the hostname or IP address (for example, sftp.example.com:5522 or 112.2.1.150:5522).


2. After Process File Actions

Control how Stock Sync handles the source feed file on your SFTP server once the import or update process finishes:


After Process File Actions


  • Do Nothing To My File: Leaves the original file untouched in its SFTP directory.
  • Append Date To My File (<date_time>_file_name): Prepends a timestamp to the processed file so you can track historical syncs.
  • Rename My File: Renames the processed file using the custom filename you enter in the provided field.
  • Delete My File: Permanently removes the file from your SFTP directory after processing.


3. File Format & First Row Header

  • File Format: Set to Auto by default so Stock Sync detects the file format automatically, or manually select the exact file format matching your feed.
  • First Row Header: Disabled by default. Enable this toggle whenever the first row of your feed file contains column headers (such as SKU, Price, or Quantity).



Key Rules & Technical Details


Server IP Whitelisting: Ensure your server firewall has whitelisted Stock Sync's static IP address 52.20.189.51 so automated connections are not blocked.


  • Protocol Prefix Requirement: SFTP host addresses must begin with sftp:// rather than https:// or standard ftp://.
  • PEM Format SSH Keys: If your SFTP server requires key-based authentication, ensure the public or private key is formatted in valid PEM Format.
  • Case-Sensitive File Paths: SFTP directory paths and filenames are strictly case-sensitive (Inventory.csv is treated differently than inventory.csv).



Troubleshooting Steps


  • Issue: FileZilla connects with your credentials, but Stock Sync fails to connect → Solution: Confirm that your server has whitelisted Stock Sync's static IP (52.20.189.51), verify you selected the right protocol (SFTP vs. FTP vs. FTPS), check that the port is 22 (or your custom SFTP port), and verify the exact case-sensitive directory and filename.
  • Issue: Server disconnects automated sync requests after connecting → Solution: Check with your hosting provider or SFTP administrator to remove server restrictions that terminate automated or non-interactive SSH sessions.
  • Issue: Connection test limit is reached while troubleshooting → Solution: Skip Test Connection and run a Manual Sync directly to view the exact error message in your feed logs.



Good Articles to Continue


Updated on: 02/12/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!