Fill the Server: 80% off your first 4 monthly invoices, monthly billing. Ends Nov 30, 2026. 25 spots in this batch.FILL25
Fill the Server, annual: about 29.63% off your first annual invoice. Ends Nov 30, 2026.FILL25Y
Fill the Server, 2 year term: about 15.69% off your first biennial invoice. Ends Nov 30, 2026.FILL25B
Fill the Server, 3 year term: about 11.11% off your first triennial invoice. Ends Nov 30, 2026.FILL25T
80% off your first 3 months, monthly billing. Ends Dec 25, 2027.3MONTHS80
50% off your first annual Shared term. Ends Dec 31, 2027.50SHARED
Shared Starter, 3 year term: C$105.84 total.MOOSE294
20% off your first 3 monthly VPS invoices. Ends Dec 31, 2027.20VPS3
25% off your first annual base VPS term.25VPS

← All guides

Linux

SSH connection refused: separate service, port and firewall failures

Published August 2026 · 8 min read

An SSH “connection refused” response is different from a timeout. It generally means the network reached something that actively rejected the requested TCP connection, narrowing the investigation toward the service, port, bind address, firewall policy, or wrong destination.

Verify the hostname and IP before touching sshd

DNS can point a familiar hostname at the wrong server after a migration. Confirm the destination and intended SSH port so you do not repair a healthy SSH service on a different machine.

Check whether the SSH daemon is listening

Use console or provider recovery access when normal SSH is unavailable. Inspect the service state and listening sockets. A stopped daemon or configuration error can leave the host reachable with nothing accepting the SSH port.

Distinguish reject from silent drop

A firewall can reject a connection immediately or silently drop packets until the client times out. The exact client error and server-side firewall rules help separate those behaviours.

Preserve a recovery path before changing SSH configuration

Validate configuration before restarting the service, keep an existing administrative session open when practical, and know how to use provider console or rescue access. A syntax mistake in sshd configuration can lock out remote administration.

Next step

SSH connection refused usually means the host actively rejected the TCP connection. Check destination, port, sshd listening state, bind address, firewall, and recent changes.

Read VPS and Linux guides

Keep reading

Related guides.

HTTP 500, 502 and 503 errors explained for website owners

Learn what HTTP 500, 502 and 503 errors usually indicate, which layer to investigate, what evidence to collect, and when restarting a service is not the real fix.

Read the guide

Linux file permissions: ownership, modes, groups and ACLs explained

Understand Unix ownership and rwx modes, then use groups and ACLs where needed so services can access files without opening them to every user.

Read the guide

Moving a DreamHost VPS to Canadian hosting

Inventory the server, copy it safely, test it, and cut DNS over with a rollback plan.

Read the guide

More vps & linux guides

We will handle the move. You check it first.

Your current site stays online until your new one is ready. You approve the copy first, and if anything is not right we switch you back right away. The price you pick is the price you renew at.

Start my free moveSee plans and prices
See pricesFree move