PDF download Download Article
Quit telnet and go back to your command line instantly
PDF download Download Article

This wikiHow teaches you how to exit a telnet session on your Windows, Mac, or Linux computer.

Quick Steps

  1. Press Ctrl + ] on your keyboard.
  2. Type "close".
  3. Press Enter or Return to close the connection.
  1. Whether you're using telnet on Windows, macOS, or Linux, pressing Ctrl + ] when connected to a server via telnet brings you back to the telnet> prompt.
  2. Alternatively, you can type quit or q—any of these three commands will work.
    Advertisement
  3. This exits telnet and returns you to the prompt in Command Prompt or Terminal.
    • If you tried to telnet to a host and the connection is hanging, you may just see ^] on the screen when you press Ctrl + ]. In this case, you can either wait for the connection to time out, or exit telnet by closing the Command Prompt or Terminal window.
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • While telnet used to be one of the most common ways to connect to servers remotely, most servers no longer accept telnet connections on most ports. These days, people mostly use telnet to test open ports, though tools like Netcat and Nmap are becoming more common.[1]
  • Telnet no longer comes preinstalled on Windows or macOS. To remotely connect to a Unix server, use ssh instead.[2]
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Use Telnet on Mac OS X Install and Use Telnet on macOS
Activate Telnet in Windows 7 Activate Telnet in Windows 7
Close Command PromptClose Command Prompt
Watch Star Wars on Command Prompt Watch Star Wars via Telnet: Windows CMD & Mac Terminal
Send Email Using TelnetSend Email Using Telnet
Access TelehackAccess Telehack
Shut Down Your Windows Computer from the Command LineShut Down Your Windows Computer from the Command Line
Remotely Shutdown a Computer Shut Down a Computer Remotely with Windows, Linux, & Mac
Restart Terminal ServicesRestart Terminal Services
Shut Down Your PC with a Shortcut Key6 Easy Ways to Use Shortcut Keys to Shut Down a Windows PC
Turn Off a Personal ComputerTurn Off a Personal Computer
Close Windows Close Windows: Quick Step-by-Step Guide
Check if a Port is Open: 5 Quick Ways
Ping an IP Address Ping an IP Address + Troubleshooting & FAQ
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 68,234 times.
How helpful is this?
Co-authors: 8
Updated: February 2, 2024
Views: 68,234
Thanks to all authors for creating a page that has been read 68,234 times.

Is this article up to date?

Advertisement