Skip to main content

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.

The service

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.

The last 31 days

Who scans port 8022

Every address that scanned port 8022 from 28 October to 27 November 2026, with known scanners left out.

Port 8022 SSH on an alternate port
Analyze
Observation window
First day28 Oct
Last day27 Nov
Known scanners left out5,8%
70.666Sources
14.892.367Connections
4.294Known scanners
31/31Active days
Sources per dayPeak 11.190 · 14 Nov
Top source networksSources
  1. AS17557Pakistan Telecommuication company limited 7.522
  2. AS4766Korea Telecom 3.633
  3. AS36903Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAM 2.771
  4. AS4134Chinanet 2.271
  5. AS4760PCCW IMS Limited 1.897
  6. AS3462Chunghwa Telecom Co., Ltd. 1.575
  7. AS45102Alibaba (US) Technology Co., Ltd. 1.153
  8. AS4837CHINA UNICOM China169 Backbone 1.069
  9. AS8075Microsoft Corporation 960
  10. AS14061DigitalOcean, LLC 894
Top source countriesSources
  1. Pakistan 7.661
  2. People's Republic of China 5.755
  3. United States of America 5.747
  4. Russian Federation 5.441
  5. South Korea 3.965
  6. Hong Kong 3.914
  7. Morocco 2.822
  8. Italy 2.747
  9. Brazil 2.146
  10. India 2.039
The verdict

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.

Questions

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.

Port 8022

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.