LEGAL DISCLAIMER: This platform is for authorized security research and educational purposes only. Scanning assets without permission is illegal.
Port Intelligence Profile

Port 22: SSH

Analyze default service protocols, historical security vulnerabilities, hardening methods, and firewall rules for port 22.

Default Service
SSH
Protocol
TCP
Risk Level
Medium
Port Range
System (1-1023)

1. Port Purpose & Usage

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. It is most commonly used for remote command-line login, shell access, and secure file transfers.

Common Service Implementations

OpenSSH

The premier connectivity tool for remote login with the SSH protocol.

Dropbear

A lightweight SSH server optimized for embedded environments.

2. Security Risks & Vulnerability Profiles

Exposed SSH ports are constantly targeted by automated brute-force scripts. Weak passwords can lead to total system compromise. Additionally, SSH key mismanagement or vulnerabilities in SSH server daemons can allow unauthorized system access.

Historical CVE References

CVE-2024-3094

XZ Utils Backdoor. A malicious backdoor was injected into the upstream xz compression library, which is dynamically linked by OpenSSH in several Linux distributions, allowing remote attackers to bypass SSH authentication.

CVE-2008-0166

Debian OpenSSL Predictable PRNG. A Debian-specific package patch accidentally compromised the random number generator, resulting in predictable SSH host and user keys.

3. Hardening & Mitigation Checklist

1
Enforce Key-Based Authentication only. Disable password authentication entirely (PasswordAuthentication no).
2
Change the default port from 22 to a non-standard port to reduce automated scan noise.
3
Configure AllowUsers or AllowGroups to restrict who can establish remote shell sessions.

4. Firewall Command Examples

Use the following system configurations to restrict open port exposure on Linux hosts:

# UFW: Rate limit SSH connections to block brute-force networks ufw limit 22/tcp
# iptables: Allow SSH only from a specific secure IP iptables -A INPUT -p tcp -s 203.0.113.50 --dport 22 -j ACCEPT iptables -A INPUT -p tcp --dport 22 -j DROP

Further Analysis

Remote Administration Ports

Ports often operate in clusters. When analyzing a service on Port 22, security engineers typically check the status of these related ports.