IT

Porta 22

ssh · SCTP/TCP/UDP

IntervalloPorta di sistema/well-known (0–1023)
ProtocolloSCTP/TCP/UDP
Serviziossh
RiferimentoRFC 4251, RFC 9260
Modificata2022-02-07

Domande frequenti

A cosa serve la porta 22?

La porta 22 è registrata presso l’IANA per ssh (SCTP/TCP/UDP). Descrizione: The Secure Shell (SSH) Protocol; SSH.

La porta 22 è una porta well-known?

Sì. La porta 22 rientra nell’intervallo 0–1023 (porte di sistema o well-known). Su Linux e macOS solo i processi privilegiati possono aprirle.

Come verifico se la porta 22 è aperta?

In locale su Linux con ss -tulpn | grep ':22\b', su Windows con netstat -ano | findstr :22. Per testare un host remoto usa Test-NetConnection <host> -Port 22 in PowerShell oppure nc -zv <host> 22 su Linux/macOS.

Come apro la porta 22 nel firewall?

Ubuntu/Debian (ufw): sudo ufw allow 22/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=22/tcp --permanent, poi firewall-cmd --reload. Windows (PowerShell come amministratore): New-NetFirewallRule -DisplayName "Port 22" -Direction Inbound -Protocol TCP -LocalPort 22 -Action Allow.

Voci del registro IANA

ProtocolloServizioDescrizione (IANA)
TCPsshThe Secure Shell (SSH) Protocol
UDPsshThe Secure Shell (SSH) Protocol
SCTPsshSSH

Voci vicine