Interview Prep/Networking/Connectivity: refused, timed out, no route

Traffic to a peer host works one way only: A can SSH to B, but B cannot SSH to A.

IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer

Likely causes → Inbound filters on A (SG, host firewall), sshd not listening on A's interface, or NAT in one direction only.

Diagnose →

# on A
sudo ss -ltnp | grep :22
sudo tcpdump -ni any tcp port 22 and host <B>

Fix → Open inbound 22 on A from B. Remember stateful filters let replies back automatically; new connections in the other direction still need explicit rules.

Prevent → Model flows as "who initiates" when writing rules.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route