> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stock-sync.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# SFTP connection method

|| Connect via SFTP to easily export your product data in XML format. Learn more [here](https://help.stock-sync.com/en/article/how-to-export-product-in-xml-format-158on4d/?bust=1751448644864). 

**SFTP** is a secure version of file transfer protocol that facilitates data access and data transfer over a secure shell data stream.

**The steps of the connection will be provided below:**

1. Fill in the **login credentials** of the user and password fields.

2. Please retrieve the **SSH Key** from the SFTP provider.

    Public or private ssh key in [PEM Format](https://ospkibook.sourceforge.net/docs/OSPKI-2.4.6/OSPKI/sample-ca-cert.htm).  
  
![](https://storage.crisp.chat/users/helpdesk/website/657b830e30706000/613a895f-a779-406d-b92e-789b1d_4yeymm.png)

3. Specify the FTP source host to that you want to export the inventories.

     **eg. sftp://vendor.com:22, sftp://ftp.vendor.com, 112.2.1.150**

     For SFTP connections, the host address must start with sftp:// (not https://). The default SFTP port is 22 unless your provider specifies otherwise.

||| To include a port number, append it to the hostname or IP address, like sftp.example.com:5522 or 112.2.1.150:5522

4. Fill in the **Directory** and **filename** where the feed file is located.

4. Fill in the **Directory** and **filename** where the feed file is located.

    **eg.** **/public_html/project/data/inventory.csv**  

For a filename with a timestamp, please click [here](https://help.stock-sync.com/en/article/wildcard-and-dynamic-date-14cjfcy/) for more info.

5. Select an option under the **After Process** field, depending on the user choosing which option for their feed file to be after the process is finished.

*   Do Nothing To My File
*   Append Date To My File (<date_time>_file_name)
*   Rename My File
*   Delete My File

![](https://storage.crisp.chat/users/helpdesk/website/1cf10fbdb0e27600/e3fbd224-96ba-492a-8aa3-571f22_80l42u.png)

6. The **File Format** field is set to **Auto** where Stock Sync auto-detects the file format or can also choose the type of file format.

7. By default **First Row Header** is disabled. If there’s a header on the file, need to enable this option.   

**If you receive an error:**
• Ensure your server has whitelisted Stock Sync’s static IP: **52.20.189.51**
• Confirm the same credentials work in FileZilla. If FileZilla connects but Stock Sync does not, common causes include:
* Protocol mismatch (FTP vs SFTP vs FTPS)
* Incorrect directory or filename (case‑sensitive)
* Wrong port (SFTP usually uses 22)
* Server restrictions that disconnect automated connections
• If the connection test limit is reached, skip Test Connection and run a Manual Sync to view the actual error.
• Ensure your server has whitelisted Stock Sync’s static IP: **52.20.189.51**
• Confirm the same credentials work in FileZilla. If FileZilla connects but Stock Sync does not, it is usually due to missing IP whitelisting or incorrect file path.