Choose the well-known port for the unencrypted legacy remote-terminal service Telnet.
Which port is appropriate?
Telnet conventionally listens on TCP 23; SSH is preferred for secure administration.
Detailed explanation
TCP 21Incorrect. TCP 21 is FTP control.
Incorrect. TCP 21 is FTP control.
TCP 22Incorrect. TCP 22 is SSH.
Incorrect. TCP 22 is SSH.
TCP 25Incorrect. TCP 25 is SMTP.
Incorrect. TCP 25 is SMTP.
TCP 23Correct. Telnet uses TCP 23.
Correct. Telnet uses TCP 23.
Try it yourself
An example you can run in a temporary verification environment.
python3 -c "import socket; print(socket.getservbyname('telnet','tcp'))"Expected result
23Key points
- Telnet 23/tcp
- SSH 22/tcp
- Telnet is plaintext
Notes
- Environment: Python 3 socket service database
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.