Permission Denied
Fix "Permission denied" errors when connecting to your VPS via SSH.
"Permission Denied"
SSH connected to your server, but the login was rejected.
Permission denied, please try again.or
Permission denied (publickey).Common Causes
Wrong Password
Passwords are case-sensitive. One wrong character and it fails.
Fix:
- Copy the password from your provisioning email. Don't type it manually
- Make sure there are no extra spaces before or after
- Remember: nothing appears on screen while typing a password
Wrong Username
QDE VPS defaults to root. If you're using something else, it won't work.
Fix: Make sure your command looks like:
ssh root@192.0.2.1Not ssh admin@... or ssh user@....
Wrong SSH Key
If you see Permission denied (publickey), the server expects a key you're not sending.
Fix:
- Check that your public key is added to
~/.ssh/authorized_keyson the server - Specify the correct key file:
ssh -i ~/.ssh/my_key root@192.0.2.1- If you don't use SSH keys, force password login:
ssh -o PasswordAuthentication=yes root@192.0.2.1Root Login Disabled
Some OS templates disable root login by default.
Fix: Use the control panel console to check:
grep PermitRootLogin /etc/ssh/sshd_configIf it says no, change it to yes and restart SSH:
sed -i 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart sshdQuick Checklist
- Username is
root - Password is copied exactly (no extra spaces)
- If using a key, the right key file is specified
- Root login is enabled in SSH config
- If all else fails, use the control panel console to reset your password or check the config