Urgent.News

What's breaking now, across thousands of outlets.

Tech

Port 22 Explained: Check SSH Connectivity Without Guessing

When an SSH connection fails, “port 22 is open” can mean several different things. A service might be listening on the server but blocked by a firewall, or a TCP connection might succeed without the service being SSH at all. The useful distinction is between listening locally , reachable over the network , and able to authenticate . Each is a separate check. What port 22 is for Port 22 is the…

Port 22 is the default TCP port for Secure Shell (SSH), a protocol used for encrypted remote access. While a listener on this port indicates that SSH is configured on the server, it does not guarantee that the service is functioning properly for authentication. To verify that the server can be reached over the network, test the TCP connection from a client machine using tools like `nc` or PowerShell's `Test-NetConnection`.

If the TCP connection is successful, it means that the server is open to incoming connections on that port, but it does not confirm that the SSH service is running or that the credentials are valid. The error messages returned when connecting can provide clues about the problem, such as a "connection refused" indicating that no service is listening on the port or a "connection timed out" suggesting that there may be a network issue.

Once you have confirmed that the server is listening and reachable, you can then focus on authentication issues, such as verifying usernames, keys, and server-side settings. Leaving port 22 open on an internet-accessible server can expose it to potential attacks, so it is important to implement strong security measures such as using key-based authentication, disabling password authentication, and restricting access to trusted sources or VPNs.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

pfft...yet another finance tracker? think again :)

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Why I Built Living in India, we heavily utilise UPI for payments.

  • Designed for iPhone users in India to track spending without manual logging
  • Uses text messages to automatically read bank transactions, prioritizing privacy
  • Categorizes transactions via AI open-weight model on local Mac processing

My Health Check Watched the Wrong File

I wrote a rule for my own agents: Liveness is not usefulness. Artifact age beats PID. A job that is loaded, looks healthy to the supervisor, and is producing nothing is the failure worth catching.

  • Health check tool misidentified Telegram poller jobs as dead
  • Jobs were actually functioning correctly, not stopped
  • Tool relied on outdated file, misunderstanding job behavior

I built Salt Wharf, a callboard where the later posted sheet wins

This is a submission for the Sanity Challenge, Path Two: Vibe-Code Something Strange What I Built I built Salt Wharf as a stage-door callboard for a fictional Valletta theatre company.

  • Salt Wharf is a fictional Valletta theatre company's callboard.
  • The public door displays the most recent posted sheet not superseded.
  • The application is a Next.js application built around Sanity.

More from Sunday 4 October →