UnderHost
Knowledgebase Docs

How to connect to CloudPanel via SFTP

Create SFTP/SSH users per site in CloudPanel and connect with FileZilla or any SFTP client. Manage site file access securely without sharing root credentials.

On this page

CloudPanel creates a system user for each site. This user is used for SFTP access-it is chrooted to the site's directory, so it cannot access other sites on the server. You set the username and password when you create the site.

SFTP users in CloudPanel

Each site in CloudPanel has one primary system user (set during site creation). This user is your SFTP login for that site. You can view or change the password:

  1. Go to Sites → your site → Users (or SSH Users)
  2. The system user is listed there-you can update the password if needed

You can also add additional SSH users per site from the same tab. Additional users can be given SSH key authentication instead of a password.

Connect with FileZilla

SettingValue
ProtocolSFTP – SSH File Transfer Protocol
HostYour server IP address (or domain once DNS is configured)
Port22 (default SSH port; may be different if changed on your server)
Logon typeNormal
UserThe site system user (shown in CloudPanel → Sites → your site → Users)
PasswordThe system user password

In FileZilla: open File → Site Manager → New Site, fill in the settings above, and click Connect. Accept the server's host key if prompted.

After connecting, you will be in the site's home directory. Navigate to htdocs/yourdomain.com/ to reach the web root.

SSH key authentication

Password-based SFTP is convenient but SSH key authentication is more secure. To set up key-based auth:

  1. Generate an SSH key pair

    On your local computer, run:

    ssh-keygen -t ed25519 -C "your@email.com"

    This creates a private key (~/.ssh/id_ed25519) and public key (~/.ssh/id_ed25519.pub).

  2. Add the public key to CloudPanel

    Go to Sites → your site → Users. Click the user you want to configure. In the SSH Keys section, paste the contents of your id_ed25519.pub file and save.

  3. Connect with the private key

    In FileZilla: Site Manager → your site → change Logon type to Key file → browse to your id_ed25519 private key file. No password needed.

Troubleshooting SFTP connections

ProblemCause and fix
Connection refused on port 22SSH port may have been changed on the server. Check the actual SSH port and use it in FileZilla
Port 22 blockedYour network may block SSH. Use a VPN or try from a different network
Authentication failedWrong username or password. Check the system user details in CloudPanel → Sites → your site → Users
Connected but very limited directory accessThe system user is chrooted to its home directory by design. Navigate to htdocs/yourdomain.com/ to find your website files
Host key changed warningIf you reinstalled the server or OS, the host key changed. Remove the old key from your known_hosts file and reconnect

Related: How to create a website in CloudPanel | Managing files in CloudPanel-file manager and SFTP | How to connect to your VPS via SSH | CloudPanel security basics-users, SSH, and access control

Was this article helpful?

Need CloudPanel on a server?

Use CloudPanel on an UnderHost VPS or dedicated server for fast PHP app and WordPress hosting without a heavy panel stack.

Related articles

Back to CloudPanel