SSH troubleshooting: when it will not connect and pages will not open
This page is for when the app will not connect, or it connects but a page will not open. Work through the steps in order; three usually settle it.
The client reaches your dev machine over the login channel you already use (SSH, the encrypted command-line protocol for logging into a remote machine). That traffic never passes through our servers. Each step asks one question — do not skip around.
Step 0: sort the failure into one of three groups
| Symptom | Most likely place |
|---|---|
| Never connects; status light red or amber | The route from you to the dev machine (network / SSH) |
| Connects, but the page is blank, 502, or connection refused | The service itself or a forwarding rule |
| The DSH page works, one other page does not | One forwarding rule, or that service |
Step 1: read what the client already said
Always in this order: the failure on the page → the rule state in Settings → the [dsh remote] log.
- The page states the reason, for example
connect ECONNREFUSED 127.0.0.1:5173. - Under Settings → Forwarding rules the rule shows listening / starting / failed / not started.
- The terminal log holds the probe, any address it switched to, and the failure.
Step 2: is the service actually listening on the dev machine?
Log in and run:
ss -lntp
Look for your port. If it is not there, the service never started or died again — nothing to do with the client.
If it is there and you still cannot connect, the address family is the usual suspect: the service listens on localhost while the client connects to 127.0.0.1. Both mean "this machine", but not always the same thing.
- The client retries the other side automatically and says so in the log.
- You can set the remote host to
::1, or make the service listen on both. - Since Node 18,
localhostresolves to::1first, so an IPv6-only service always refuses127.0.0.1.
Step 3: is the local port taken?
If the failure says the address is already in use (EADDRINUSE), set that rule's local port to 0 so the system picks a free one — or choose a different fixed port.
Step 4: does the dev machine allow forwarding?
The SSH server can refuse port forwarding. The error is usually administratively prohibited / open failed, and AllowTcpForwarding has to be enabled in that machine's sshd_config — or ask whoever owns it.
Step 5: why did automatic forwarding not kick in?
First check whether the status line says it cannot read the port snapshot: automatic forwarding needs the companion plugin in the remote DSH.
dsh plugin --profile web add @zhangzhian/dsh-devtools
Restart DSH afterwards; a client-installed runtime already includes it.
Then check whether the service descends from DSH:
- Started outside DSH with
nohup, pm2, systemd, screen or tmux — invisible. - DSH in a container while you connect to the host (or the reverse) — invisible.
- Bound to a specific interface, such as
192.168.1.5:8081— invisible.
All three are solved by adding a rule by hand under Settings → Forwarding rules; manual rules do not need the plugin. Details are in Live debugging.
Step 6: is it asking for a password?
- A sign-in box inside the page: that is the remote page protecting itself. Tick "Remember password" and the credential is encrypted in the system key store.
- A fingerprint to confirm on first connect: that is how the client verifies the server (TOFU, trust on first use). Confirm once and it is remembered; a later change turns red, meaning someone may be impersonating it.
Step 7: remember that local listeners bind 127.0.0.1
That is deliberate: every forwarded port listens on 127.0.0.1 only, so other machines on your network cannot reach the tunnel. The client does not offer an option to listen more widely.
Common symptoms
| Symptom | Usually means | What to do |
|---|---|---|
| Service is running, connection refused | It listens on the other address family | See step 2, or make it listen on both |
| Nothing is running | No process on that port | See step 2, start the service |
| Page opens but stays blank | The request arrived, the machine sent nothing | curl the port on the dev machine, then read the log |
| "Address already in use" | Something local holds that port | Set the local port to 0 |
| Rule state is "not started" | SSH is not connected yet | Connect SSH first |
| Status line cannot read the port snapshot | dsh-devtools is missing remotely | See step 5 |
| Page says it is reconnecting | The page noticed the network dropped | Let it reconnect; the address does not change |
After a disconnect
Dropping the connection only stops the channel: same address, no reload, no popup. Reconnects are automatic (1 / 2 / 4 / 8 / 15 second backoff). Authentication failures, fingerprint changes and unreadable keys are not retried, so a bad password never gets your IP banned by fail2ban.
Still stuck?
Send us the last lines of the terminal log together with the failure shown on the page — that is usually enough to pin it down.
- How forwarding works: Live debugging
- The whole product: What is DSH Remote?
- Quick answers: FAQ
Did this page help?
If something is still unclear, tell us and we will fix this page.
In a hurry? Email works too.