Fix SSH Port 22 Connection Timed Out

By Zennith Tech Lab Published 2026-05-22
SSHLinuxFirewallNetworking

To solve SSH connection timeout errors, enable SSH ports within host firewall access rule registries.

Open Port 22 Firewalls

Configure host cloud security policies and the local UFW firewall to allow traffic through port 22.

# Step 1: Clear Local Server Firewalls

1. Log into your server console. 2. Update firewall access lists: ``bash # Add port 22 rules via UFW manager sudo ufw allow 22/tcp sudo ufw reload ` 3. Ensure server daemons run properly: sudo systemctl restart ssh`.