SSH uses port 22. The IANA Service Name and Transport Protocol Port Number Registry assigns port 22 to the service name ssh, described as "The Secure Shell (SSH) Protocol", with RFC 4251 as the reference. The SSH transport standard, RFC 4253, Section 4.1, says that when SSH is used over TCP/IP, "the server normally listens for connections on port 22."
Port 22 by transport protocol
The IANA registry lists three entries for ssh on port 22, one for each transport protocol below.
| Transport | Port | Reference listed by IANA |
|---|---|---|
| TCP | 22 | RFC 4251 |
| UDP | 22 | RFC 4251 |
| SCTP | 22 | RFC 9260 |
TCP is the transport the SSH standard describes for port 22: RFC 4253 describes port 22 in its section on use over TCP/IP, and RFC 4251 says the SSH transport layer "will typically be run over a TCP/IP connection, but might also be used on top of any other reliable data stream."
What changed and when
RFC 4253, the Standards Track document for the SSH transport layer, was published in January 2006 and says port 22 "has been registered with the IANA, and has been officially assigned for SSH." The registry page as a whole shows a last update of 2026-11-10.