Teksolvr
Back to Home

Network Port: 22

Network Port Reference Guide

Registered Service Name

SSH / SFTP

Transport Protocol

TCP

Functional Overview

Port 22 is the industry standard for Secure Shell (SSH) remote terminal access and Secure File Transfer Protocol (SFTP) operations.

Security Risks & Vulnerabilities

Constant target for brute-force attacks and scanner probes. Implement public-key authentication, change the default port, or use fail2ban to harden.

How to audit network port status

1. Scan Open Ports: Use our Port Scanner utility to verify if this port is actively listening on your host.

2. Verify Encryption: Audit the service layer to confirm SSL/TLS is protecting transmission payload.

3. Hardening Rules: Apply the firewall instructions below to shut down unauthorized inbound ports.

UFW Firewall Rules

Allow Command

sudo ufw allow 22/tcp

Block Command

sudo ufw deny 22/tcp

iptables Firewall Rules

Allow Command

sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT

Block Command

sudo iptables -A INPUT -p tcp --dport 22 -j DROP