Windows terminal tab freezes when ssh is disconnected within WSL #13904

Open
opened 2026-01-31 03:55:23 +00:00 by claunia · 0 comments
Owner

Originally created by @ismailhkose on GitHub (May 25, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.985, 1.7.1033.0

Other Software

Windows 10 21H1 (OS Build 19043.985)
Windows Terminal Version: 1.7.1033.0

Cygwin64
Cygwin mintty 3.4.2 (x86_64-pc-cygwin) [Windows 19043]
OpenSSH_8.4p1, OpenSSL 1.1.1f 31 Mar 2020

WSL
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
Linux -T480 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu Workstation
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
tmux 3.2

Steps to reproduce

1 - VPN is connected to corporate network.
2 - Open Windows Terminal and start Ubuntu 18.04 WSL2
3 - SSH to remote machine within WSL2. I ssh to my Ubuntu 18.04 workstation in corporate network.
4 - Create a new tmux session session. tmux new -s test
5 - Disconnect VPN (Uncheck connect automatically)

At this step, terminal freeze should be reproduced, and it should not be responding to any keys, which is a bug 1. I have to close the terminal tab, and open another one to continue.

Expected Behavior

1- When VPN is disconnected, and ssh should be disconnected within the terminal as Cygwin does. However, Windows terminal gets stuck though.

Actual Behavior

1 - Windows Terminal has a blinking cursor, however; it doesn't response to any key ctrl+c or any other keys.
2 - It doesn't seem to try disconnects after connection timeout. Terminal hangs. The only way is to close the terminal tab.

Originally created by @ismailhkose on GitHub (May 25, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.985, 1.7.1033.0 ### Other Software Windows 10 21H1 (OS Build 19043.985) Windows Terminal Version: 1.7.1033.0 **Cygwin64** Cygwin mintty 3.4.2 (x86_64-pc-cygwin) [Windows 19043] OpenSSH_8.4p1, OpenSSL 1.1.1f 31 Mar 2020 **WSL** OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 Linux <USERNAME>-T480 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux **Ubuntu Workstation** OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 tmux 3.2 ### Steps to reproduce 1 - VPN is connected to corporate network. 2 - Open Windows Terminal and start Ubuntu 18.04 WSL2 3 - SSH to remote machine within WSL2. I ssh to my Ubuntu 18.04 workstation in corporate network. 4 - Create a new tmux session session. tmux new -s test 5 - Disconnect VPN (Uncheck connect automatically) At this step, terminal freeze should be reproduced, and it should not be responding to any keys, which is a bug 1. I have to close the terminal tab, and open another one to continue. ### Expected Behavior 1- When VPN is disconnected, and ssh should be disconnected within the terminal as Cygwin does. However, Windows terminal gets stuck though. ### Actual Behavior 1 - Windows Terminal has a blinking cursor, however; it doesn't response to any key ctrl+c or any other keys. 2 - It doesn't seem to try disconnects after connection timeout. Terminal hangs. The only way is to close the terminal tab.
claunia added the Resolution-By-DesignNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 03:55:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13904