When the Connection Itself Is the Problem
Remote Support Tools & Techniques
Chapter 8 · When the Connection Itself Is the Problem
Network Troubleshooting already taught the general diagnostic toolkit — DNS, ping, port checks, firewalls. This chapter isn't new technical territory so much as that same toolkit aimed at one specific, narrower question: "I'm trying to reach an SSH, RDP, or VNC service on a specific host, and it isn't working."
The First Question: Is It Me, or Is It Them?
The same scoping instinct netdiag1 opens with, applied here directly: can you reach other things fine? If yes, the problem is specific to this one host or service, not your general connectivity. Testing from a genuinely different network — your phone's own mobile data, for instance — isolates whether the problem is your specific location or something about the target itself.
Common SSH Connection Failures, Precisely Read
Reusing netdiag1's own "refused vs. timed out" distinction (Chapter 6), applied specifically to SSH:
| Error | What it actually means |
|---|---|
| Connection refused | Nothing is listening on port 22, or a firewall explicitly rejected it — netdiag1's own network-level distinction |
| Operation timed out | A firewall silently dropping the connection, or a genuine network-path problem — also netdiag1's territory |
| Permission denied (publickey) | The network connection and SSH handshake both actually succeeded — this is an authentication failure, not a connectivity one |
authorized_keys, the wrong key is being offered, or the wrong username was used. This is Chapter 2's territory, not netdiag1's — treating it as a network problem sends the investigation in a completely wrong direction, even though it also happened "at connection time."
A Practical Checklist, In Order
- Can I reach anything else at all? (scope)
- Can I reach the host at the network level — ping, or a route that completes? (
netdiag1Chapter 5) - Is the specific port actually open? (
netdiag1Chapter 6 —nc -zv host 22for SSH,nc -zv host 3389for RDP) - If the port is open but the connection still fails — is this actually an authentication problem, not a network one? (Chapter 2's own
authorized_keysmaterial)
RDP-Specific Connection Failures
RDP has its own distinct failure modes worth recognizing on sight, rather than mistaking for a network problem: "The remote computer requires Network Level Authentication, which your computer does not support" is a real, specific, named error indicating a client/server security-mode mismatch — not a connectivity issue at all. Similarly, a connection refused specifically due to a server already at its concurrent RDP session limit is a licensing/capacity condition, again nothing to do with the network path.
Working Example: "SSH to the Jump Host Stopped Working This Morning"
Working the checklist: other services reach fine — not a general network problem. A ping to the jump host times out. A traceroute shows the path dying at the exact same hop that always used to pass through cleanly — genuine network-path evidence, not an SSH-specific issue at all. This gets escalated as a plain netdiag1-style network finding to the network team, rather than treated as an SSH problem — "I can't SSH in" often turns out to be an ordinary network-layer problem wearing an SSH-shaped disguise, and the diagnostic techniques from that course apply completely unchanged.
Hands-On Exercises
Explain why "Permission denied (publickey)" is described as a genuinely different category of failure from "Connection refused" or a timeout, even though all three happen at connection time.
📄 View solutionExplain why the RDP "Network Level Authentication" error shouldn't be diagnosed the same way as a network connectivity failure.
📄 View solutionIn this chapter's working example, explain why the "SSH stopped working" ticket was escalated as a network finding rather than an SSH-specific one, and what evidence supported that conclusion.
📄 View solutionChapter 8 Quick Reference
- This chapter applies
netdiag1's own toolkit to one narrow question: why can't I connect in - Scope first: can you reach other things fine? Test from a different network to isolate location vs. target
- Refused/timeout = network-level (
netdiag1territory); "Permission denied (publickey)" = authentication succeeded reaching the server, then failed — Chapter 2's territory - Ordered checklist: reach anything → reach the host → the specific port is open → is this actually auth, not network
- RDP has its own distinct errors (NLA mismatch, session-limit refusal) — neither is a network problem
- Don't jump to "the firewall" first — the mundane explanation is usually right
- Next chapter: Session Logging & Audit Trails for Remote Access