linux.observer
← All labs

Linux networking / Intermediate / 25–35 min

The SSH listener on the wrong port

An SSH client gets a connection refusal inside an isolated network. Inspect the listener and restore the expected service port.

LAB IDlinux-04-ssh-connection-refusedTRACK / linux.observer
Hard disk and server storage for a Linux troubleshooting lab

The scenario

A client cannot connect to an OpenSSH server at its expected lab port. Diagnose the network path and listener, then restore connectivity without changing host firewall or DNS settings.

Mission objectives

  • Reproduce the refusal from the client container.
  • Inspect the server's listening ports and SSH configuration.
  • Restore an SSH response on the expected lab port and verify it from the client.

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/linux-04-ssh-connection-refused.sh
less linux-04-ssh-connection-refused.sh
bash linux-04-ssh-connection-refused.sh
cd labs/linux-04-ssh-connection-refused
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Compare the destination port used by the client with the listening sockets inside the server container.

Hint #2

The lab's sshd configuration is mounted from this directory. Validate it and recreate the server container to pick up the file.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.