Trying to run
telnet in Emacs shell I cannot figure out how to send
^] to terminate it.
You should be able to press C-q to run
quoted-insert to insert any key chord you want. So pressing C-q C-] will insert
^] into the buffer instead of running the command bound to C-]