Port 8022
Port 8022 SSH on an alternate port
Port 8022 is a popular home for SSH when port 22 is taken or meant to be avoided. Scanners know that and test it the same way.
What is port 8022 used for?
Port 8022 has no service of its own, but administrators often move SSH there, and some systems use it by default, such as the SSH server of the Termux app on Android and the management login of some appliances.
Whatever runs on it, a scanner that finds SSH on port 8022 treats it exactly like SSH on port 22.
Why attackers want it
Moving SSH to another port cuts the noise in the logs, and attackers know it. They scan alternate ports for the same weak passwords and old SSH versions they look for on port 22.
Who scans port 8022
Every address that scanned port 8022 from 28 October to 27 November 2026, with known scanners left out.
- AS17557Pakistan Telecommuication company limited 7.522
- AS4766Korea Telecom 3.633
- AS36903Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAM 2.771
- AS4134Chinanet 2.271
- AS4760PCCW IMS Limited 1.897
- AS3462Chunghwa Telecom Co., Ltd. 1.575
- AS45102Alibaba (US) Technology Co., Ltd. 1.153
- AS4837CHINA UNICOM China169 Backbone 1.069
- AS8075Microsoft Corporation 960
- AS14061DigitalOcean, LLC 894
- Pakistan 7.661
- People's Republic of China 5.755
- United States of America 5.747
- Russian Federation 5.441
- South Korea 3.965
- Hong Kong 3.914
- Morocco 2.822
- Italy 2.747
- Brazil 2.146
- India 2.039
Should port 8022 be open?
Port 8022 can be open when SSH must be reachable, with the same care as port 22: keys only, no password login and a short list of allowed addresses.
Use keys, not passwords
Turn off password authentication and direct root login, whatever port SSH runs on.
Limit who can connect
Allow the port only from known addresses or through a VPN, and rate limit new connections.
Keep the server current
Update OpenSSH or the appliance firmware that provides the login.
Port 8022 questions
What is port 8022 used for?
Port 8022 is a common alternate port for SSH. Administrators move SSH there, and some systems, such as Termux on Android and some appliances, use it by default.
Does running SSH on port 8022 stop attacks?
No. It reduces log noise, but scanners check alternate ports for SSH and try the same passwords there.
Is it safe to have port 8022 open?
It can be, with key based login only, no password or root login, and the software kept up to date. Limiting it to known addresses is safer still.
How do I block port 8022?
Drop inbound TCP 8022 unless you run SSH on it, and allow it only from the addresses that need it. An IP blocklist of active scanners stops the sources that look for it.
Block the sources that scan port 8022.
An hourly IP feed of active scanners keeps them away from this port and everything else you run.