Porta 22
ssh · SCTP/TCP/UDP
| Faixa | Porta de sistema/bem conhecida (0–1023) |
|---|---|
| Protocolo | SCTP/TCP/UDP |
| Serviço | ssh |
| Referência | RFC 4251, RFC 9260 |
| Modificada | 2022-02-07 |
Perguntas frequentes
Para que serve a porta 22?
A porta 22 está registrada na IANA para ssh (SCTP/TCP/UDP). Descrição: The Secure Shell (SSH) Protocol; SSH.
A porta 22 é uma porta bem conhecida?
Sim. A porta 22 está na faixa 0–1023 (portas de sistema ou bem conhecidas). No Linux e no macOS, só processos privilegiados podem abri-las.
Como verifico se a porta 22 está aberta?
Localmente, no Linux com ss -tulpn | grep ':22\b' e no Windows com netstat -ano | findstr :22. Para testar um host remoto, use Test-NetConnection <host> -Port 22 no PowerShell ou nc -zv <host> 22 no Linux/macOS.
Como abro a porta 22 no firewall?
Ubuntu/Debian (ufw): sudo ufw allow 22/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=22/tcp --permanent e depois firewall-cmd --reload. Windows (PowerShell como administrador): New-NetFirewallRule -DisplayName "Port 22" -Direction Inbound -Protocol TCP -LocalPort 22 -Action Allow.
Entradas no registro da IANA
| Protocolo | Serviço | Descrição (IANA) |
|---|---|---|
| TCP | ssh | The Secure Shell (SSH) Protocol |
| UDP | ssh | The Secure Shell (SSH) Protocol |
| SCTP | ssh | SSH |