Back
VPS

Cannot connect / SSH connection refused

Diagnose and fix the common reasons an SSH connection to your Victus VPS is refused, times out, or rejects your password/key.

ssh refusedconnection timed outcannot connecttroubleshootinglocked out

SSH failures usually fall into a few clear buckets, and the exact error message tells you which one. Work through this from the top — most problems are fixed without touching the VPS itself.

Read the error message

SymptomMost likely cause
Connection timed outVPS is off/booting, wrong IP, or a firewall is dropping traffic
Connection refusedsshd is not running or is listening on a different port
Permission denied (publickey)Wrong key, or password auth is disabled
Permission denied (password)Wrong root password
Host key verification failedThe VPS was rebuilt — clear the old fingerprint

Quick checks first

  1. 1Confirm the VPS shows as "running" in the control panel; if not, start it and wait 1-2 minutes.
  2. 2Double-check the IP address in the Network view — copy/paste it rather than typing.
  3. 3Verify your own internet connection and try again; check https://status.victuscloud.com for platform incidents.
  4. 4Test basic reachability from your machine (see the ping/port test below).
bash
# Is the host reachable at all?
ping YOUR_VPS_IP

# Is the SSH port open? (Linux/macOS)
nc -vz YOUR_VPS_IP 22

# Verbose SSH to see exactly where it fails
ssh -vvv root@YOUR_VPS_IP

The #1 self-inflicted cause: ufw

If you enabled ufw without first running "ufw allow OpenSSH", you locked yourself out. This does NOT return "refused" — it usually times out. Fix it from rescue mode or the panel console, then allow OpenSSH.

Host key changed after a rebuild

bash
# Remove the stale fingerprint, then reconnect
ssh-keygen -R YOUR_VPS_IP
ssh root@YOUR_VPS_IP

When SSH is truly dead, use the panel console

Victus VPS includes a browser console (serial + noVNC) in the panel. Use it to log in directly, inspect sshd with "systemctl status ssh", check "ufw status", or fix the config even when the network path is blocked.

bash
# From the panel console, once logged in:
systemctl status ssh          # is the daemon running?
systemctl restart ssh         # restart it
ss -tlnp | grep :22           # confirm it is listening on 22
ufw status                    # is a rule blocking you?

Related in VPS

First login over SSH (find your IP + root password)Locate your Victus VPS IP address and root password in the control panel, then connect over SSH from Windows, macOS or Linux for the first time.Reset the root passwordChange your Victus VPS root password from inside the machine, or reset it from the panel or rescue mode if you are locked out.Reinstall / rebuild the OSWipe your Victus VPS and reinstall a fresh Ubuntu template from the control panel, including how to back up first and what survives.Open firewall ports (ufw)Use ufw on your Victus Ubuntu VPS to open the ports your apps need — web, game and custom services — without locking yourself out of SSH.Resize the disk after an upgradeAfter upgrading your Victus VPS plan the virtual disk grows, but Linux needs the partition and filesystem expanded to actually use the new space.Create and restore snapshotsTake point-in-time snapshots of your Victus VPS before risky changes and roll back to them from the panel if something breaks.Boot into rescue modeBoot your Victus VPS into a rescue environment to repair a broken boot, fix fstab, reset the root password, or recover files when the OS will not start.Mount a custom ISOAttach and boot your Victus VPS from a custom ISO to install an operating system that is not offered as a stock template.IPv6 networking basicsUnderstand and configure the IPv6 address on your Victus VPS — find your address, test connectivity, and bind services to IPv6.Install a one-click appDeploy common software on your Victus VPS in minutes using the one-click app installer in the control panel.Check CPU/RAM/disk usageMonitor CPU, memory and disk usage on your Victus VPS from the panel graphs and with standard Linux commands to spot bottlenecks.Add a swap fileAdd a swap file to your Victus VPS to survive memory spikes and avoid the OOM killer when RAM is tight.