WSL Terminal - Weird freezing issue

Re: WSL Terminal - Weird freezing issue

by Georg Hager -
Number of replies: 0

Hi,

colleagues who use WSL have reported similar issues with SSH connections. It seems like the WSL terminal doesn't like short network outages, but that's only a wild guess. There are two things you can do that can improve the situation for you:

  1. In order to terminate the nonresponsive SSH connection, just type "~" followed by "." followed by the enter key. This three-key sequence will get you back to your local shell so you don't have to kill the whole terminal window. However, your connection (and your interactive job on fritz) is still lost.
  2. You can use a terminal multiplexer such as "screen" or "tmux" on a machine at the computing center, for example on cshpc. The terminal multiplexer is like a session with multiple windows from which you can detach anytime and reattach later to continue where you left off. We have an intro video about tmux at
    Using tmux you can connect to fritz from a session window. If your WSL terminal connection fails, just kill it with the key sequence (see above) and log in again at cshpc, then reattach to the running tmux session and you're back.
Even without terminal/connection problems, we strongly recommend using a terminal multiplexer. It makes your life so much easier.

Best,
Georg.