-
Notifications
You must be signed in to change notification settings - Fork 738
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
Invalid MaxPhysicalWindowSize set by sshd #2177
Comments
Can you please test with 9.4 (https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v9.4.0.0p1-Beta)? 8.0 is about 4 years old so I hope that it might have been fixed |
@matso42 confirmed, the bug is still there with 9.4 PS C:\Users\Administrator> $Host.UI.RawUI
ForegroundColor : Gray
BackgroundColor : Black
CursorPosition : 0,2
WindowPosition : 0,0
CursorSize : 25
BufferSize : 292,69
WindowSize : 292,69
MaxWindowSize : 292,69
MaxPhysicalWindowSize : 1008,45
KeyAvailable : True
WindowTitle : Administrator: C:\Windows\system32\conhost.exe
PS C:\Program Files\OpenSSH> .\sshd.exe -V
OpenSSH_for_Windows_9.4, LibreSSL 3.7.3 |
Hmm, I may need additional details to setup a repro. I tried to ssh from an Ubuntu-20 machine to a ssh server on a Windows 11 machine, and it seems like What type of machine is the ssh client connecting from? Any chance the machine with the ssh server is accessible without ssh? I'm curious what the value of |
Prerequisites
Steps to reproduce
Expected behavior
$Host.UI.RawUI.MaxPhysicalWindowSize
should be at least as big as the client's size.Actual behavior
$Host.UI.RawUI.MaxPhysicalWindowSize
is smaller than$Host.UI.RawUI.WindowSize
, resulting in tools trying to restore termcaps to use the wrong values.Example: open/close vim.
Error details
Initially posted on the docs repo MicrosoftDocs/Console-Docs#302, but as the bug impacts openssh, reposting it here as well.
Environment data
Version
v9.4.0.0p1-Beta (OpenSSH_for_Windows_9.4, LibreSSL 3.7.3)
Visuals
Example:
The text was updated successfully, but these errors were encountered: