What is Port 22 (SSH (Secure Shell) & SFTP) and How Does It Work?
SSH (Secure Shell) provides encrypted remote command-line login and system administration on Linux/Unix systems.
Security Vulnerabilities & Attack Vectors on Port 22
Port 22 is heavily targeted by automated brute-force attacks. Disable root login, enforce SSH keys, and use Fail2ban.
Auditing & Scanning Port 22 with Nmap / Netcat
Run the following commands to check if Port 22 is reachable and inspect active listeners:
nmap -p 22 -sV -sC <target> nc -zv target-server.com 22 sudo lsof -i :22