26

The title says it all. Note that I'm using a non-US layout, Norwegian, so I can't create the Ctrl+] combination. I've found the trick before, but can't find it.

kenorb
  • 26,615
Trygve Laugstøl
  • 363
  • 1
  • 4
  • 7

7 Answers7

38

Type Ctrl+] to enter the telnet menu, then enter quit. For more commands, see man telnet.

Edit: Haven't noticed that you can't type Ctrl+], but I would be surprised if there isn't a way to type that with every keyboard. But you can change the escape character with the commandline option -e [char].

Giacomo1968
  • 58,727
DarkDust
  • 1,603
29

Not sure what layout you have, but for me in Finnish layout it is Ctrl + å.

Bemmu
  • 1,088
8

To answer your specific question: Ctrl+å then enter quit.

But to make it more fun it depends on your layout a lot:

(Remember on a Mac Ctrl is your key)

  • Default: Ctrl+[
  • Dutch, Belgian: Ctrl+$
  • French: Ctrl+6
  • Finnish, Swedish, Norwegian, Danish: Ctrl+å
  • Swiss: Ctrl+¨
  • German: Ctrl+ü
  • Hungarian and Turkish: Ctrl+5
  • Portuguese: Ctrl+´
  • Canadian French: Ctrl+ç

then enter quit.

For more commands, see man telnet.

Xanlantos
  • 177
1

You can also use the command "set escape" followed by any key you want to set the escape character.

example: telnet> set escape ctrlp

Burgi
  • 6,768
fitstek
  • 19
-1

I often don't remember the key-sequences... except at the telnet prompt this sequence works: telnet> quit

followed by the return key.

PReinie
  • 119
-1

Ctrl5 (back to telnet) and then Ctrld (back to shell)

... helped me on following constellation

  • AWS Web Terminal (in Firefox)
  • Mac OS
  • German keyboard layout
-3

With UK keyboard is Ctrl ] then Ctrl \