Port reference › Remote access

Port 23 · Telnet

Legacy unencrypted remote shell

TCP Remote access Exposure risk: High

What is port 23 used for?

An old plaintext remote login protocol. Still seen on old network gear, and handy for testing whether a port is open (telnet host 80).

Well-known port (0-1023): opening it on Linux needs root (or CAP_NET_BIND_SERVICE).

Security notes

Usernames and passwords travel in clear text. Use SSH for device management and disable Telnet. It was the main entry point for IoT botnets like Mirai.

Allow port 23 through the firewall

This port is risky to expose, so the commands below allow only the IPs you specify.

# Replace 203.0.113.10/32 with the IP or network you want to allow
sudo ufw allow from 203.0.113.10/32 to any port 23 proto tcp
sudo ufw status

Check whether port 23 is open

sudo ss -tlpn | grep ':23 '

Ports used together

Other remote access ports

2222 SSH (alternate port) 3389 RDP 5900 VNC 5985 WinRM (HTTP) 5986 WinRM (HTTPS)