A troubleshooting guide for diagnosing and resolving SSH authentication failures when accessing Vultr Compute Instances.
Secure Shell (SSH) is the default and most secure way to access your Vultr Compute Instance. However, authentication failures like incorrect credentials, key mismatches, or permission issues can prevent access. This guide helps you diagnose and resolve SSH login problems in a systematic manner.
If you're locked out of SSH, the View Console button in the Vultr Customer Portal is your backup access method.
Verbose output provides deeper insights into where your SSH connection is failing:
ssh -vvv root@your-instance-ip
This will show connection attempts, authentication methods offered, key usage, and any rejection reasons.
Example output snippets and what they mean:
Permission denied (publickey)
: No matching public key found on server.Too many authentication failures
: Too many keys attempted; SSH client is blocked.No supported authentication methods
: Password or key-based authentication is disabled.Password Authentication Fails:
Error Example:
root@192.0.2.4's password:
Permission denied (publickey,password)
Possible Causes:
PasswordAuthentication
no in sshd_config
).PermitRootLogin
is disabled.How to Fix:
Open the console and edit /etc/ssh/sshd_config
.
Locate the below parameters and make sure they look like below.
PermitRootLogin yes
PasswordAuthentication yes
Restart the SSH service.
# systemctl restart sshd
SSH Key Authentication Fails:
Error Example:
Permission denied (publickey)
Disconnected: No supported authentication methods available (server sent: publickey)
Common Causes:
~/.ssh/authorized_keys
on the instance..ssh
directory or key files.Fix File Permissions (from Console or Recovery Mode):
$ sudo chmod 700 ~/.ssh
$ sudo chmod 600 ~/.ssh/authorized_keys
$ sudo chown -R youruser:youruser ~/.ssh
$ ssh-keygen -y -f ~/.ssh/id_rsa
SSH Login Loop or PAM Issues:
Symptom:
Possible Causes:
/etc/passwd
or /etc/shadow
.Resolution:
Sometimes, fixing SSH access is more time-consuming than rebuilding. Consider redeployment if:
You can:
If you've tried all troubleshooting steps and still can't regain access, reach out to Vultr Support. Include:
IP
.password
or key
).ssh -vvv
)./var/log/auth.log
or journalctl
(if accessible).This helps Vultr's support team pinpoint the root cause and accelerate resolution.