SFTP Setup for Google Merchant Center
How to configure automatic SFTP uploads to Google Merchant Center using the Google Shopping Feed extension. SFTP transfer ensures your product data reaches Google faster than scheduled fetch.
Why Use SFTP?
| Method | How It Works | Update Speed |
|---|---|---|
| Scheduled Fetch | Google downloads from your URL | Up to 24 hours |
| SFTP Upload | You push to Google's servers | Near-immediate |
SFTP is recommended for:
- Large catalogs (faster processing)
- Frequent inventory changes
- Time-sensitive promotions
- Stores requiring faster updates
Getting SFTP Credentials
Step 1: Access Google Merchant Center
- Log in to Google Merchant Center
- Click the Settings icon (gear)
- Select SFTP and Google Cloud Storage
Step 2: Generate Credentials
In the SFTP section:
- Click Generate to create SFTP credentials
- Note your Username (format:
{merchant_id}@{merchant_id}.sftp.googleproductfeed.com) - Set and save your Password
Important: Save your password immediately—Google won't show it again.
Step 3: Note Connection Details
| Setting | Value |
|---|---|
| Host | sftp.googleproductfeed.com |
| Port | 19321 |
| Username | Your generated username |
| Password | Your set password |
Configuring the Extension
Enable SFTP Transfer
Location: Magmodules → Google Shopping - Feed → Automation and Google Merchant SFTP Transfer
| Setting | Value |
|---|---|
| Enable SFTP | Yes |
| Username | Your SFTP username from Merchant Center |
| Password | Your SFTP password |
Test the Connection
After saving:
- Generate a feed manually or via CLI
- Check if the file was uploaded to Merchant Center
- Verify in Products → Data sources that the feed was received
Automation Setup
Enable Cron Generation
For automatic uploads, enable cron-based feed generation:
| Setting | Recommended |
|---|---|
| Enable Cron | Yes |
| Frequency | Every 6 hours (adjust based on catalog changes) |
With both cron and SFTP enabled:
- Cron generates fresh feed on schedule
- Extension automatically uploads via SFTP
- Google processes the new data
Recommended Frequencies
| Catalog Type | Feed Frequency | Inventory Frequency |
|---|---|---|
| Small (< 1,000 products) | Every 12 hours | Every 6 hours |
| Medium (1,000 - 10,000) | Every 6 hours | Every 2-4 hours |
| Large (> 10,000) | Every 6 hours | Every 1-2 hours |
| Fast-moving inventory | Every 4 hours | Every hour |
Troubleshooting
Connection Failed
Symptoms: SFTP upload fails, connection errors in logs.
Check:
- Credentials correct? Copy-paste from Merchant Center to avoid typos
- Password expired? Regenerate in Merchant Center if needed
- Firewall blocking? Ensure outbound connections to
sftp.googleproductfeed.com:19321are allowed
Authentication Error
Symptoms: "Authentication failed" in logs.
Solutions:
- Regenerate credentials in Merchant Center
- Update credentials in Magento
- Test connection again
Upload Succeeds but Feed Not Processing
Symptoms: File uploads but Merchant Center shows no update.
Check:
- Filename matches? Merchant Center expects specific filename
- Feed format valid? Check for XML errors
- Feed registered? Ensure data source is configured in Merchant Center
Testing SFTP Manually
Test connection outside Magento:
# Using sftp command
sftp -P 19321 username@sftp.googleproductfeed.com
# Using lftp
lftp -u username -p 19321 sftp://sftp.googleproductfeed.com
Google Merchant Center Setup
Register Your Feed
After first successful upload:
- Go to Products → Data sources
- Click Add data source
- Select SFTP
- Enter the filename your extension uses
- Set processing schedule (or leave as "Process as soon as possible")
Monitor Feed Status
Check feed health regularly:
- Products → Diagnostics - View errors and warnings
- Products → Data sources - See last processing time
- Products → All products - Verify product count
Security Considerations
Password Storage
SFTP credentials are stored encrypted in Magento's configuration. Access is limited to admin users with configuration permissions.
Firewall Rules
If your server has strict outbound rules, allow:
- Host:
sftp.googleproductfeed.com - Port:
19321 - Protocol: SFTP (SSH-based)
Credential Rotation
Periodically rotate SFTP passwords:
- Generate new credentials in Merchant Center
- Update in Magento configuration
- Test upload works with new credentials
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team