Home / Port numbers / Port 2222
Port 2222: SSH alternate (unofficial)
SSH moved off its standard port, and the DirectAdmin panel. Port 2222 uses TCP.
- Port
- 2222
- Commonly used for
- SSH alternate (unofficial)
- Transport
- TCP
- Encrypted
- Yes
- Range
- User (registered) port, 1024 to 49151
- Our advice
- Open it only if you need it, and secure the service first
- IANA registration
EtherNet-IP-1EtherNet/IP I/O (TCP, UDP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 2222 is used for
Port 2222 is a popular unofficial second home for SSH, chosen when port 22 is taken or to escape the constant automated login attempts there. Hosting companies and containers use it often. The DirectAdmin hosting control panel also uses 2222 for its web interface. Officially the number is registered to an industrial protocol, EtherNet/IP.
Should port 2222 be open?
Moving SSH here reduces log noise and nothing else: scanners check 2222 routinely. The protections that matter are the same as on port 22, namely keys instead of passwords and up-to-date software.
Related ports
- Port 22 (SSH): secure remote login and file transfer (SFTP)
- Port 23 (Telnet): remote command line, unencrypted
See all port numbers for the full list and how ports, TCP and UDP work.
Previous: Port 2181 (Apache ZooKeeper) · Next: Port 2375 (Docker API (unencrypted))