SFTP Setup and Secure Access

Who this is for

Users who want to transfer files to/from a site using an SFTP client (such as FileZilla, Cyberduck, or WinSCP).


Prerequisites

  • Site is running with SSH connectivity.
  • The server's firewall allows inbound connections on port 22.
  • You have an SFTP client installed on your computer.

What SFTP Access Provides

SFTP (SSH File Transfer Protocol) gives you a dedicated set of credentials to connect directly to the site's document root. SFTP is suitable for:

  • Bulk uploads (plugins, themes, media files)
  • Transfers from automation pipelines
  • Large file uploads where a browser connection might time out

How to Set Up SFTP for a Site

  1. Open the site detail → Overview tab.
  2. Scroll to the SFTP / FileZilla Connection card.
  3. Click Setup SFTP (requires Owner or Admin role).
  4. Confirm.

CloudAIPilot creates a dedicated SFTP user on the server scoped to the site's document root.

Once setup completes, click Show Credentials to view:

  • Host: the server's IP address or hostname
  • Port: 22
  • Username: the auto-generated SFTP username
  • Password: the auto-generated password

You can also download pre-filled connection config files for FileZilla, WinSCP, or Cyberduck directly from the same card, or copy the full SFTP URI.


How to Connect with an SFTP Client

FileZilla example:

  1. Open FileZilla.
  2. Go to File → Site Manager → New Site.
  3. Set:
  • Protocol: SFTP – SSH File Transfer Protocol
  • Host:
  • Port: 22
  • Logon type: Normal
  • User:
  • Password:
  1. Click Connect.

You will land directly in the site's document root.


How to Test SFTP Connectivity

  1. In the Overview tab's SFTP card, click Test Connection.
  2. CloudAIPilot attempts to connect to the SFTP user and reports success or failure.

How to Reset the SFTP Password

If you forgot the password or suspect it was compromised:

  1. Open the site detail → Overview tab → SFTP card.
  2. Click Reset Password.
  3. Confirm.
  4. A new password is generated. Click Show Credentials to view it.

Security Notes

  • The SFTP user is chrooted to the site's document root — they cannot browse outside the site's directory.
  • The SFTP password is stored encrypted in CloudAIPilot. It is decrypted only when displayed on request.
  • Use strong, unique passwords. If sharing credentials with a client or contractor, reset the password when they no longer need access.

What Success Looks Like

SFTP test shows a connection success. Your SFTP client connects and shows the site's document root directory. File uploads complete successfully.


Common Issues and Fixes

IssueLikely causeFix
"ALREADY_CONFIGURED" errorSFTP was already set upNo action needed — click Show Credentials or use Reset Password to get a new password.
"NO_DOCROOT" errorSite has no document root setEnsure the site provisioning completed successfully.
Connection refused on port 22Server firewall blocking port 22Open port 22 in the firewall — see KB-02-11: Firewall Basics.
"Authentication failed"Wrong passwordUse the SFTP Reset to generate a new credential.

Related Articles