I have a Linux server with services running inside
systemd containers. To access the shell inside a container, I can use the command
machinectl login <container>. That command will give me the container's login prompt and this message:
Connected to container <name>. Press ^] three times within 1s to exit session.
After I'm done and type
logout, I'm returned to the container's login prompt. In order to get back to the host's shell, I need to send the control character
^] (three times within one second).
I'm using an international (Finnish) keyboard and instead of having its own dedicated key, the
] character is ⌥+9. But when I press ctrl+⌥+9, it's not recognized as the control character
^] and I'm stuck at the login prompt.
How can I send a proper
^] control character with an international keyboard?