If you have forgotten your VPS root password or need to reset it, you can do this directly from the VirtFusion control panel.
SSH into your server with the new password:
ssh root@YOUR_VPS_IP
Once logged in, change the password to something you will remember:
passwd
If the password was reset but you still cannot log in via SSH, the issue is usually the SSH server configuration. Use the VNC Console in VirtFusion to access your server and check:
1. Check if password authentication is enabled:
grep -i "PasswordAuthentication" /etc/ssh/sshd_config
If it says PasswordAuthentication no, change it to yes:
sudo nano /etc/ssh/sshd_config
Find the line and change it to:
PasswordAuthentication yes
2. Check if root login is permitted:
grep -i "PermitRootLogin" /etc/ssh/sshd_config
It should be set to yes or prohibit-password (the latter allows key-based login only). To allow password login as root, set it to yes.
3. Restart SSH to apply changes:
sudo systemctl restart sshd
Passwords can be guessed or brute-forced. SSH keys are much more secure. Here is how to set them up:
On your local computer, generate a key pair:
ssh-keygen -t ed25519
Copy the public key to your VPS:
ssh-copy-id root@YOUR_VPS_IP
Or manually add it. On your VPS, paste your public key into:
nano ~/.ssh/authorized_keys
Now you can log in without a password:
ssh root@YOUR_VPS_IP
If the password reset button in VirtFusion does not change your password, the qemu-guest-agent may not be installed or running on your VPS. This agent is required for the panel to communicate with your OS.
If you can still access your VPS via VNC, you can install it:
# Ubuntu/Debian
sudo apt install qemu-guest-agent
sudo systemctl enable --now qemu-guest-agent
# AlmaLinux/Rocky
sudo dnf install qemu-guest-agent
sudo systemctl enable --now qemu-guest-agent
If you cannot access your VPS at all, please open a support ticket and we will assist you.