How to end a telnet session (Windows, Linux, Mac)

Question: How do I close a telnet session/window?

This article assumes that you’ve started a telnet conection through the Windows command prompt. (you can do so by typing: “telnet address port“)

Answer: To end your current telnet session you must reach the telnet prompt and type quit.

Here are the steps for doing so:
1. Open the telnet prompt by holding down the ‘Ctrl’ key and push the ‘]’ key. (prompt: Microsoft Telnet>)

2. Type quit.

3. Push the ‘Enter’ key.

You can change this default telnet prompt key by starting telnet like this:

telnet –e p (this will change the telnet prompt key to lowercase ‘p’)