How to end a telnet session (Windows, Linux)

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  192.168.1.81 (this will change the telnet prompt key to lowercase ‘p’)

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

3 Responses to “How to end a telnet session (Windows, Linux)”


  1. 1 Nikhil Jan 1st, 2010 at 2:05 am

    Hey,
    Thanks a lot. I had opened a telnet connection and had no idea how to close it until I came across this!!
    By the way, I am logged in Ubuntu. So the steps you have mentioned for windows work for linux as well.

  2. 2 cpascu Jan 12th, 2010 at 11:36 am

    Good to know, changed the title accordingly :)

  3. 3 thomas Jan 28th, 2010 at 12:20 am

    Hi,
    great post, could you please mention, that this also work with other key mappings? e.g. on german keyboards the ‘]’ is a composed key, but the same key position as on english keyboards works: use [Ctrl] + [+] there.
    Regards,
    Thomas

Leave a Reply