Sarah Chen
Sarah Chen
Web Hosting & Domains Editor
Former web developer turned reviewer. Specialises in WordPress hosting and domain strategy.

如何使用 FileZilla 进行 SFTP 2026

SFTP is the secure way to move themes, plugins, and wp-config snippets without exposing passwords over FTP. This guide uses FileZilla. The same steps apply to other clients.

我们如何核对文中步骤

发布前,若步骤依赖主机商,我们会在至少两家平台各走一遍;否则在同一环境隔日执行两次。我们记录控制台报错、不同地区的界面文案差异,并在厂商调整按钮位置后立即更新文案。路径与截图每季度抽检。涉及 DNS、SSL 或付款时,我们确认回滚/补救选项,并链接到官方文档以获取权威表述。

  1. 1

    Step 1: Create or locate SFTP credentials

    In cPanel/hPanel → FTP Accounts or SSH/SFTP section, create a user scoped to public_html (or the site root). Note host, username, password.

  2. 2

    Step 2: Open FileZilla Site Manager

    File → Site Manager → New Site. Protocol: SFTP. Host: your server hostname. Port: 22 (unless host specifies otherwise). Logon type: Normal.

  3. 3

    Step 3: Connect and trust host key

    On first connect, verify the host key fingerprint against your host's documentation, then accept.

  4. 4

    Step 4: Navigate to public_html

    Remote pane: open the web root where wp-config.php lives. Local pane: your computer project folder.

  5. 5

    Step 5: Transfer files safely

    Drag to upload; keep backups before overwriting. Set file permissions per host docs. Typically 644 files, 755 folders.

  6. 6

    Step 6: Disconnect

    Close the connection when finished. idle sessions may hit security limits.

1
Hostinger Top Pick
Hostinger has survived multiple yearly cycles on our bench: LiteSpeed, hPanel, and sub-$3 intro pricing still deliver the best overall value for most sites we migrate.
★★★★½
✓ 优点
  • Hostinger named when the dashboard flow matched what we checked on a live account.
  • Fast LiteSpeed loading, consistent in our repeated tests.
  • Good storage, SSL, and backups on entry plans, no forced add-ons at login.
✕ 缺点
  • No phone support on any plan.
  • Staging and extra backups may need a higher plan.
月价格$2.99
存储空间100 GB SSD
免费域名✓ 是
在线时间99.9%
2
InMotion Hosting Business Grade
US-centric SMB sites with NVMe and phone support on the checklist land on InMotion: dual coast data centres show up in our coast-to-coast latency checks.
★★★★½
✓ 优点
  • InMotion Hosting named when the dashboard flow matched what we checked on a live account.
  • NVMe plans, noticeably faster for WordPress with heavy databases.
  • US phone support, knowledgeable staff in our tests.
✕ 缺点
  • Not the first pick for global audiences. EU and Asia can be slower.
  • Older-looking control panel. Short training session helps.
月价格$2.99
存储空间100 GB NVMe SSD
免费域名✓ 是
在线时间99.99%

常见问题

SFTP vs FTP?+
Always prefer SFTP; plain FTP sends credentials in cleartext.
Cannot connect on port 22?+
Some hosts use a custom SSH port. Check welcome email or ask support.