Which TCP port does Secure Shell (SSH) use by default?

Port 22 is the registered port for SSH.

Start playing free

  1. 22 ✔
  2. 23
  3. 3389

Why: SSH is registered to port 22. Telnet sits on 23 and Remote Desktop on 3389. All three are remote access tools, so techs mix them up.

Huh, didn't know that: The IANA registry lists SSH on port 22 for TCP, UDP and SCTP.

The dad joke
What did the parrot say when it wanted to get inside its owner's computer? 'Polly wants a hacker!'
Like this card?
Play the game

References

Answer: 22. SSH is registered to port 22. Telnet sits on 23 and Remote Desktop on 3389. All three are remote access tools, so techs mix them up.

  1. IANA Service Name and Transport Protocol Port Number Registry CSV www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv
    ssh,22,tcp,The Secure Shell (SSH) Protocol
    Checked 2026-10-11.
  2. IANA Service Name and Transport Protocol Port Number Registry CSV www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv
    ssh,22,udp,The Secure Shell (SSH) Protocol
    Checked 2026-10-11.
  3. IANA Service Name and Transport Protocol Port Number Registry CSV www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv
    ssh,22,sctp,SSH
    Checked 2026-10-11.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game