Port 2222 – DirectAdmin/SSH (Secure Shell)

Service:

ssh

Protocol:

TCP

Port:

2222

Used for:

Alternative SSH port and DirectAdmin control panel

Why It’s Open

Port 2222 is commonly used as an alternate SSH port and is the default port for DirectAdmin, a popular web hosting control panel. System administrators often move SSH to this port to avoid automated scanning and attacks targeting the default port 22, while hosting providers use it for DirectAdmin’s secure remote management.

Organizations may have this port open either for alternate SSH access or DirectAdmin management interfaces. It’s particularly common in web hosting environments where DirectAdmin provides server and website management capabilities.

Common Risks

  • Brute Force Attacks
    Despite being non-standard, still targeted by attackers.
  • Weak Authentication
    Default or weak credentials in DirectAdmin installations.
  • Version Exploits
    Unpatched SSH or DirectAdmin vulnerabilities.
  • Configuration Issues
    Misconfigurations in access controls or key management.
  • Information Disclosure
    Service banners may reveal software versions.

Want to save time on reporting?

Let PentestPad generate, track, and export your reports - automatically.

logo-cta

Enumeration & Testing

Check if it’s open:

Terminal window
nmap -sT -p 2222

Test SSH connection:

Terminal window
ssh -p 2222 user@

Check DirectAdmin:

Terminal window
curl -k https://:2222

What to Look For

CheckpointWhat it means
SSH version exposedMay reveal vulnerable implementations
DirectAdmin login pageWeb panel potentially accessible
Default credentialsInstallation not properly secured
Missing rate limitingSusceptible to brute force attacks

Mitigation

  • Strong Authentication
    Implement key-based auth and disable password login.
  • Access Controls
    Restrict access to trusted IP ranges.
  • Regular Updates
    Keep SSH and DirectAdmin patched.
  • Rate Limiting
    Implement connection throttling.
  • Monitoring
    Enable comprehensive logging of access attempts.

TL;DR

  • Port 2222 = SSH alternate / DirectAdmin
  • Common in hosting environments
  • Target for automated attacks
  • Needs strong access controls

Known CVEs and Exploits