Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Enable SFTP on WordPress.com Business & Ecommerce

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Enabling SFTP (SSH File Transfer Protocol) on your WordPress.com Business or Ecommerce plan gives you direct file access to your site’s server. This means you can upload custom themes, edit configuration files, manage plugins more deeply, and troubleshoot issues that the standard dashboard doesn’t allow. Before you start, make sure you have your WordPress.com account credentials handy, and note that SFTP is only available on Business and Ecommerce plans — not on lower tiers.

What You'll Need

  • An active WordPress.com Business or Ecommerce plan.
  • Your WordPress.com username and password (the same ones you use to log in).
  • A computer with an SFTP client (like FileZilla, Cyberduck, or WinSCP) or a terminal with the sftp command.
  • Two-factor authentication disabled temporarily, if you have it enabled — it can interfere with the SFTP connection.

Step-by-Step

  1. Log in to your WordPress.com account at wordpress.com using your usual credentials.
  2. Go to your site’s dashboard by clicking on “My Sites” in the top-left corner and selecting the site you want to enable SFTP for.
  3. Navigate to the Hosting Configuration panel: In the left sidebar, click on “Hosting” (or “Settings” > “Hosting” in some views). This opens the hosting management page for your site.
  4. Find the SFTP section: Scroll down to the “SFTP” or “SSH Access” section. On Business and Ecommerce plans, you’ll see a toggle or a button labeled “Enable SFTP” or “Create SFTP credentials”.
  5. Click the enable button: It may say “Enable SFTP”, “Generate Credentials”, or “Create SSH/SFTP user”. Click it.
  6. Wait for credentials to be generated: WordPress.com will create a unique SFTP username, host (usually sftp.wordpress.com), and a password or a temporary one. This can take a few seconds.
  7. Copy the credentials: Make sure to copy the username, host, and password. If the password is temporary, you’ll need to change it after your first login. Store them securely.
  8. Open your SFTP client: Launch FileZilla, Cyberduck, or your preferred client. If you’re using the command line, open your terminal.
  9. Enter the connection details: In your client, enter:
    • Host: sftp.wordpress.com (or the host provided in your credentials)
    • Port: 22 (default for SFTP)
    • Protocol: SFTP (not FTP or FTPS)
    • Username: your SFTP username (often looks like yourusername or a random string)
    • Password: the password you copied
  10. Connect: Click “Connect” or “Quickconnect”. If prompted about an unknown host key, accept it — it’s normal for a new server.
  11. Navigate to your site’s root directory: Once connected, you’ll see a directory structure. Your site’s files are usually in a folder like htdocs, www, or public_html. Look for wp-content, wp-config.php, etc.
  12. You’re done: You can now upload, download, edit, and manage files as needed.

Common Mistakes

  • Using FTP instead of SFTP: Many clients default to FTP or FTPS. Make sure you explicitly select SFTP (port 22).
  • Entering your WordPress.com login as the SFTP username: The SFTP username is different from your WordPress.com username. It’s usually a long string or a specific username shown in the credentials.
  • Forgetting to change a temporary password: If WordPress.com gives you a temporary password, you must change it on first login (often via the hosting panel or a command). If you don’t, you might get locked out or have connection issues.
  • Having two-factor authentication enabled: This can block SFTP connections. Disable it temporarily in your WordPress.com security settings, then re-enable after you’re connected.
  • Editing files incorrectly: If you edit a file like wp-config.php and make a syntax error, your site may go down. Always back up files before editing.

Tips

  • Use a dedicated SFTP client: FileZilla is free and cross-platform, but Cyberduck is great for Mac users. Choose one you’re comfortable with.
  • Save your connection profile: In your client, save the connection details (host, username, port) so you don’t have to type them every time.
  • Keep your credentials secure: Store them in a password manager. Don’t share them with anyone you don’t trust.
  • Use a staging site for major changes: If you’re going to edit core files, test on a staging copy first to avoid breaking your live site.
  • Understand the file structure: Familiarize yourself with where themes and plugins live (usually in wp-content/themes and wp-content/plugins).

Troubleshooting

  • Connection timed out: Check that you’re using the correct host and port. Also, make sure your firewall or VPN isn’t blocking port 22. Try a different network.
  • Authentication failed: Double-check your username and password. If you recently changed your WordPress.com password, you may need to regenerate SFTP credentials in the hosting panel.
  • “Host key verification failed”: This is common on first connection. In FileZilla, you can accept the new key. If it persists, delete the saved key from your client’s settings and retry.
  • Can’t see files after connecting: You might be in the wrong directory. Look for the folder that contains wp-content or index.php. If you’re in the root, try navigating to htdocs or www.
  • SFTP option not showing: Ensure your plan is actually Business or Ecommerce. If it is, try logging out and back in, or clear your browser cache. If it still doesn’t appear, contact WordPress.com support.
  • Password reset loop: If you’re forced to change the temporary password but the change doesn’t stick, try using the “Regenerate SFTP credentials” button in the hosting panel to get a fresh set.

Frequently Asked Questions

Is SFTP available on all WordPress.com plans?

No, SFTP is only available on Business and Ecommerce plans. Lower-tier plans (Free, Personal, Premium) do not include this feature.

Can I use SSH (not just SFTP) on WordPress.com?

WordPress.com Business and Ecommerce plans do not provide full SSH shell access. You only get SFTP for file transfer, not a terminal command line.

Will enabling SFTP affect my site's performance?

No, enabling SFTP itself doesn’t affect performance. It just opens a secure channel for file management. However, uploading large files or making heavy changes could temporarily increase server load.

Can I upload a custom theme via SFTP?

Yes, you can upload custom themes to wp-content/themes via SFTP. However, you still need to activate the theme from the WordPress admin dashboard.

How do I change my SFTP password?

You can change it from the WordPress.com hosting panel under the SFTP section. There may be an option to “Change Password” or you can regenerate credentials entirely.

What if I lose my SFTP credentials?

You can always regenerate them from the hosting panel. This will invalidate the old ones, so you’ll need to update your SFTP client with the new details.