SSH session in Ubuntu terminal slows down, hangs, and eventually disconnects #10902

Open
opened 2026-01-31 02:33:22 +00:00 by claunia · 0 comments
Owner

Originally created by @alexqfredrickson on GitHub (Oct 5, 2020).

Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version: 1.3.2651.0
Any other software? No

Steps to reproduce

  1. Open a Ubuntu terminal using Windows Terminal
  2. SSH into some Linux machine (perhaps create an AWS EC2 free-tier Ubuntu instance)
  3. Enter commands into the terminal (it doesn't matter which), for example:
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io

Expected behavior

The commands execute.

Actual behavior

The first few commands work fine, but the overall terminal performance quickly degrades. It becomes sluggish at first - then it outright hangs. Executing commands doesn't work; pasting commands into the console doesn't work; Control+C/X do not help. Terminal cursor keeps blinking. Windows Terminal memory usage is fine. The whole thing just hangs until the SSH session is disconnected from inactivity - then Windows Terminal kind of wakes back up. This happens consistently and occurs during every SSH session, independent of the commands executed during that session. For me, it is rendering SSH impossible.

alex@desktop:/mnt/c/Users/alex$ ssh_ubuntu
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.3.0-1034-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Oct  5 17:23:43 UTC 2020

  System load:  0.0               Processes:           94
  Usage of /:   30.8% of 7.69GB   Users logged in:     0
  Memory usage: 28%               IP address for eth0: 172.31.42.156
  Swap usage:   0%

 * Kubernetes 1.19 is out! Get it in one command with:

     sudo snap install microk8s --channel=1.19 --classic

   https://microk8s.io/ has docs and details.

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

5 packages can be updated.
0 updates are security updates.

New release '20.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


*** System restart required ***
Last login: Mon Oct  5 17:05:18 2020 from 96.58.56.48

ubuntu@ip-123-45-67-891:~$ sudo apt-get update
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:6 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease
Reading package lists... Done

ubuntu@ip-123-45-67-891:~$ sudo apt-get install docker-ce docker-ce-cli containerd.ioclient_loop: send disconnect: Connection reset by peer

alex@desktop:/mnt/c/Users/alex$ ssh_ubuntu ^C
Originally created by @alexqfredrickson on GitHub (Oct 5, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version: 1.3.2651.0 Any other software? No ``` # Steps to reproduce 1. Open a Ubuntu terminal using Windows Terminal 2. SSH into some Linux machine (perhaps create an AWS EC2 free-tier Ubuntu instance) 3. Enter commands into the terminal (it doesn't matter which), for example: ``` $ sudo apt-get update $ sudo apt-get install docker-ce docker-ce-cli containerd.io ``` <!-- A description of how to trigger this bug. --> # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> The commands execute. # Actual behavior <!-- What's actually happening? --> The first few commands work fine, but the overall terminal performance quickly degrades. It becomes sluggish at first - then it outright hangs. Executing commands doesn't work; pasting commands into the console doesn't work; Control+C/X do not help. Terminal cursor keeps blinking. Windows Terminal memory usage is fine. The whole thing just hangs until the SSH session is disconnected from inactivity - then Windows Terminal kind of wakes back up. This happens consistently and occurs during every SSH session, independent of the commands executed during that session. For me, it is rendering SSH impossible. ``` alex@desktop:/mnt/c/Users/alex$ ssh_ubuntu Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.3.0-1034-aws x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Oct 5 17:23:43 UTC 2020 System load: 0.0 Processes: 94 Usage of /: 30.8% of 7.69GB Users logged in: 0 Memory usage: 28% IP address for eth0: 172.31.42.156 Swap usage: 0% * Kubernetes 1.19 is out! Get it in one command with: sudo snap install microk8s --channel=1.19 --classic https://microk8s.io/ has docs and details. * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 5 packages can be updated. 0 updates are security updates. New release '20.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it. *** System restart required *** Last login: Mon Oct 5 17:05:18 2020 from 96.58.56.48 ubuntu@ip-123-45-67-891:~$ sudo apt-get update Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease Hit:6 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease Reading package lists... Done ubuntu@ip-123-45-67-891:~$ sudo apt-get install docker-ce docker-ce-cli containerd.ioclient_loop: send disconnect: Connection reset by peer alex@desktop:/mnt/c/Users/alex$ ssh_ubuntu ^C ```
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 02:33:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10902