-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal screen redraw issues when ssh-ing from WSL2 console after recent Windows updates #9459
Comments
Hmm. HMM. This sounds a lot like a window resize issue. Can you run Then paste the contents of stty.log. 😄 |
So, here's what I think you asked for:
Did a Here's the version on ssh if I redirect it (again, prior to doing something that sets the terminal off):
Here's the version after an initial
Aha, these are starting to look different (redirected version is different from interactive version). Is that normal? However, I see nearly the same results on the local stty as remote (for both bare or redirected comparisons). The only difference is the Anyways, not sure if that helps you at all. Let me know if you need more details. Thanks much for the speedy response! |
Here's another interesting way to get it to stop outputting: echo {a..z}{a..z} (no output) However, this doesn't cause an issue: echo {a..z}{0..9} (full cross-product output) Tried that after trying to count how many lines or characters If I login again to that remote machine from another console window, the previous one's processes are as expected (e.g. nothing hung/spinning. Previous |
Closing this. Pretty sure there's an MTU issue in WSL2 land now, not the terminal. If I do the following: ping -Mdo -s 1373 $remote_host The packets stop responding, though A simple workaround for the moment is to do the following in the WSL2 VM (at least until I can track down where it's really going wrong): ip link set mtu 1400 dev eth0 Note: this may have to do with the fact that my path is going from WSL2 -> host Hyper-V -> host VPN -> ... -> remote host. |
Just to close the loop on this, here's a couple of other references for more details/fixes regarding MTU path discovery issues with VPN and WSL2: |
Environment
Steps to reproduce
My windows machine updated the other night and now I'm having weird terminal issues when I ssh to a remote host from a local WSL2 terminal.
Plain old shell generally seems to work on the remote end, but the moment it needs to go to some form of full screen redraw interface (e.g.
less
,top
,vim
, etc.) the screen can't refresh anymore. In some cases, long output (e.g.ps -AH u
) will cause it to stall output as well.Seems to work okay for local sessions though.
The remote machines also work okay from a different Windows laptop's WSL that I have (for the moment since I haven't rebooted to apply the update yet), so it doesn't appear to be the remote end point that's the problem.
It also works okay if I
ssh
from a Putty terminal emulator on my problematic workstation, so it appears to really be a problem with the terminal emulator on this machine. I have tried startingbash
frombash
,pwsh
,cmd
)powershell
terminalThese all exhibit the same behavior.
When the problem occurs I can enter the magic
~.~.
sequence to kill the ssh session and return to the host terminal session. At this point the cursor itself is gone (no longer a white block, underscore, etc.), though I can type again. Runningreset
in the localbash
session recovers the local behavior without needing to restart the console window, but I still get the same issue once I try to ssh to a remote host again.Expected behavior
Free flowing characters over ssh :)
Actual behavior
Characters stop flowing :(
Links
Feedback hub report: https://aka.ms/AAbi4mw
The text was updated successfully, but these errors were encountered: