![]() |
|
Guide CloudPanel SSH or SFTP Login Fails: Permission Denied and Connection Errors - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: CloudPanel (https://adminsforum.com/Forum-cloudpanel) +---- Forum: CloudPanel Guides & Tutorials (https://adminsforum.com/Forum-cloudpanel-guides-tutorials) +----- Forum: CloudPanel Users, SSH & SFTP Guides (https://adminsforum.com/Forum-cloudpanel-users-ssh-sftp-guides) +----- Thread: Guide CloudPanel SSH or SFTP Login Fails: Permission Denied and Connection Errors (/Thread-guide-cloudpanel-ssh-or-sftp-login-fails-permission-denied-and-connection-errors) |
CloudPanel SSH or SFTP Login Fails: Permission Denied and Connection Errors - JAY - 10-23-2026 CloudPanel SSH or SFTP login fails: permission denied and connection errors FileZilla says "Connection timed out", your terminal says "Permission denied (publickey)", or a user who logged in yesterday can't today. SSH and SFTP problems on CloudPanel come down to three things: the firewall, the user, and the login method. Here's how to work through them. For setting up users, see CloudPanel SSH, SFTP, FTP and File Manager. The basics: which port and which user?
Error 1: "Connection timed out" Nothing answered. Almost always a firewall.
Code: ufw status numbered
ss -tlnp | grep sshdError 2: "Connection refused" The server answered, but SSH isn't listening on that port. Maybe the SSH port was changed. Check Code: grep -i '^Port' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/*.confCode: ssh -p NEWPORT user@serverError 3: "Permission denied (publickey)" The server only accepts SSH keys, and yours wasn't accepted. Some VPS providers switch off password logins by default.
Code: ssh -v siteuser@YOUR_SERVER_IPError 4: "Permission denied, please try again" (password) Wrong password, or password logins are disabled on the server. Reset the user's password in the site's SSH/FTP tab (Generate new password makes a strong one). If password logins are off for the whole server, use an SSH key instead (Error 3). Error 5: logged in, but can't see or change files
FTP connects but the file list never loads That's the passive port range. CloudPanel's firewall rule for FTP opens ports 20-21 and the passive range 49152-65534 for your IP. If your provider has a cloud firewall too, open the same range there. Also check the ProFTPD MasqueradeAddress setting mentioned in CloudPanel's docs if the server is behind NAT. Better still, use SFTP: one port, encrypted, fewer problems. Sources: CloudPanel: SSH/FTP ยท OpenSSH: ssh manual More CloudPanel troubleshooting
Applies to CloudPanel v2 on Ubuntu and Debian, October 2026. In the commands, replace Code: example.comCode: siteuser |