To close a telnet connection, follow these steps:
If you're connected to a server via telnet on Windows, macOS, or Linux, first return to the telnet prompt:
-
Press Ctrl + ]. This action will bring you back to the telnet prompt.
-
Then, at the telnet prompt, type one of the following commands and press Enter:
close
quit
q
Any of these commands will terminate the telnet session. (Reference date: 02-Feb-2024)