PL

Port 22

ssh · SCTP/TCP/UDP

ZakresPort systemowy/well-known (0–1023)
ProtokółSCTP/TCP/UDP
Usługassh
OdniesienieRFC 4251, RFC 9260
Zmieniono2022-02-07

Najczęstsze pytania

Do czego służy port 22?

Port 22 jest zarejestrowany w IANA dla: ssh (SCTP/TCP/UDP). Opis: The Secure Shell (SSH) Protocol; SSH.

Czy port 22 jest portem well-known?

Tak. Port 22 leży w zakresie 0–1023 (porty systemowe, well-known). W Linuksie i macOS tylko uprzywilejowane procesy mogą je otwierać.

Jak sprawdzić, czy port 22 jest otwarty?

Lokalnie w Linuksie poleceniem ss -tulpn | grep ':22\b', w Windows poleceniem netstat -ano | findstr :22. Zdalny host przetestujesz w PowerShell poleceniem Test-NetConnection <host> -Port 22 lub w Linuksie/macOS poleceniem nc -zv <host> 22.

Jak otworzyć port 22 w zaporze?

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

Wpisy w rejestrze IANA

ProtokółUsługaOpis (IANA)
TCPsshThe Secure Shell (SSH) Protocol
UDPsshThe Secure Shell (SSH) Protocol
SCTPsshSSH

Sąsiednie wpisy