Skip to main content

Prompt: What ports are mostly used for SSH connections, other than 22?

Updated 2 min readMarkdown

[ 🔗: https://chatgpt.com/share/6930cd94-87c4-800f-98e1-1ec31d500318 ]

Ports commonly used as alternatives to SSH’s default port 22 are usually chosen to avoid automated scans, reduce noise, or meet internal security policies. While SSH can technically run on any TCP port, these are the most commonly used in real-world setups:

[IMAGES NOT INCLUDED]

✅ Common alternative SSH ports

PortWhy it’s used
2222Most popular alternative port. Simple, easy to remember, often used for dev environments.
2200Another frequently used stable port for SSH on production hosts.
2022Variant of 22 → easy mnemonic, used widely.
8022Often used on Android (Termux SSH) and some network devices.
9922Used when avoiding conflicts with other services or firewall restrictions.
10022Common on NAT setups or port-forward rules.
22222Sometimes used on routers or edge nodes for “security through obscurity”.

🧪 Less common, but sometimes seen:

PortNotes
443Over HTTPS port to bypass strict firewalls; risky unless isolated.
80Rare; used only when forced by extremely restrictive networks.
25 / 587Used only for special tunneling scenarios.
3389Never recommended (RDP port) but sometimes used for obfuscation.

🚫 Important Notes

  • Changing the port does not improve real security—only reduces noise from bots.

  • Always combine with:

    • Key-based authentication

    • Fail2ban / intrusion prevention

    • Firewall rules (limit to IP ranges if possible)

If you want, I can also show:

✅ how to configure SSH to use multiple ports

✅ how to set custom ports on macOS, RHEL, Ubuntu

✅ how to check which ports SSH is currently listening on

About the author

  • I’m Aiman, and I see the world through prompts. IBM by day, prompt tinkerer by night. Here I share experiments, failures, wins, and the random magic that happens when curiosity meets AI. Welcome to my lens of ideas {<●>}.

No comments yet. Be the first to comment.