The use of echo-e \"\\ 029\"
does not work either.
But if use strg + alt gr + ] directly in a terminal session -> it works.
It must be so. Because ^]
printed in the terminal on the server means for the client side nothing. The client must catch this symbol before it will be transmitted to server and of course you can't just write it to terminal in te program running on the server.
So you need to interrupt session in other way. There are many methods.
exit
in shell or sys.exit()
in python or exit()
in many other languages).kill ...
(PID of the process instead of ...
).kill ...
) but on the client side.On my danish keyboard it was not Ctrl + å - but instead the key to the right side of å (which has a hat, a tilde and a umlaut)
On MacOS with Turkish keyboard try:
Ctrl + Option + ü
Then,
> quit
To Close Session Use below command
it works perfect in REHL and CentOS.
The ^]
means ctrl + right
bracket. As strange as that is, it works. You'll be taken to the telnet prompt, where you can type quit.
On international keyboards the ]
character is often not a single key, and needs to be replaced with some other key. The correct key is typically the key to the right of P or the next key after that.
Here's a list based on comments below:
Finnish, Swedish, Norwegian, Danish: ctrl + å
French: ctrl + 6
German: ctrl + ü
Swiss: ctrl + ¨
Hungarian: ctrl + 5
Portuguese: ctrl + ´
Dutch, Belgian: ctrl + $
Canadian French: ctrl + ç
On Linux it's actually:
CTRL + ] then ENTER
Finally type in the quit
command.
^]
telnet> quit
Connection closed.
[fred@localhost ~]$