2222
Port 2222 is the conventional alternative for SSH.
- Even
- Composite
Where 2222 fits
Why 2222 is special
Moving SSH off port 22 does not stop a targeted attack but it removes essentially all of the automated scanning noise, which is why the practice persists despite being derided as security through obscurity.
2222 is part of
Factors & digit properties
- Divisors (8)
- 1, 2, 11, 22, 101, 202, 1111, 2222
- Prime factorisation
- 2 × 11 × 101
- Digit sum
- 8
- Digital root
- 8
Representations
- Decimal
- 2222
- Scientific notation
- 2.222 × 10^3
Roman numerals
M M C C X X I I
Binary
1 0 0 0 1 0 1 0 1 1 1 0
1 × 2,048 + 0 × 1,024 + 0 × 512 + 0 × 256 + 1 × 128 + 0 × 64 + 1 × 32 + 0 × 16 + 1 × 8 + 1 × 4 + 1 × 2 + 0 × 1 = 2,222
Octal
4 2 5 6
4 × 512 + 2 × 64 + 5 × 8 + 6 × 1 = 2,222
Hexadecimal
8 a e
8 × 256 + a × 16 + e × 1 = 2,222
Read as powers of two: 2,048 + 128 + 32 + 8 + 4 + 2 = 2,222.
In historical numeral systems
Egyptian
2 lotuses, 2 coils of rope, 2 hobbles, 2 strokes
2 × 1,000 + 2 × 100 + 2 × 10 + 2 × 1 = 2,222. The signs are simply repeated and added; where they sit on the line is a matter of layout, not value.
Babylonian
3 corner wedges + 7 vertical wedges (sixties place), 2 vertical wedges (units place)
37 × 60 + 2 = 2222. Places are separated by a space on the tablet, with the higher place written first.
Systems that simply cannot reach this value are left out. Where a script needs a font most readers do not have, the reading is given instead of the glyphs — see number systems for each system in full.
Other mathematical patterns
- Palindromic number
- Deficient number
- Repdigit
Related numbers & connections
SSH is assigned port 22 and frequently run on 2222 instead. The change stops no targeted attacker and removes almost all automated scanning noise, which makes the logs readable — an operational benefit often dismissed as mere obscurity.
View 22 →Other connections
- is associated with22
why?
Strength 0.50, confidence "high".
Technology & computing
Running SSH on 2222 rather than 22 does not defeat anyone looking for you specifically. It does remove the overwhelming majority of automated login attempts, which makes the logs readable — a real operational benefit often dismissed on principle.
DocumentedTechnology & computing
Common questions
Is 2222 a prime number?
No, 2222 is not prime.
What are the factors of 2222?
The factors of 2222 are 1, 2, 11, 22, 101, 202, 1111, 2222.
What is 2222 in Roman numerals?
2222 in Roman numerals is MMCCXXII.
About this page's data
Mathematical facts:computed directly from the number's value — nothing to source or verify externally.
Contextual records: 1 reviewer-confirmed record, sourced and reviewed before publication.
Last reviewed: 15 July 2026