Open abakum opened 11 months ago
Please uncoment https://github.com/PowerShell/openssh-portable/blob/4ee8dc64982b62cd520417556515383908091b76/contrib/win32/win32compat/shell-host.c#L804. To fix:
>2) when ssh client window is resized it clears everything and gives a blank screen.
Before https://github.com/PowerShell/openssh-portable/blob/4ee8dc64982b62cd520417556515383908091b76/contrib/win32/win32compat/shell-host.c#L845C5-L845C31 stop transmit from stdout of cmd.exe to ssh session
After https://github.com/PowerShell/openssh-portable/blob/4ee8dc64982b62cd520417556515383908091b76/contrib/win32/win32compat/shell-host.c#L851 resume transmit from stdout of cmd.exe to ssh session
For me ssh-shellhost.exe for amd64 from https://github.com/PowerShell/Win32-OpenSSH/issues/1222#issuecomment-409052375 works well. Were can I find ssh-shellhost.exe for 386?
@abakum what OS versions do you have running on the client and the server?
Microsoft Windows [Version 10.0.14393] on same PC server and client
Starting with Windows 10 Build 18309, ConPTY should be supported so ssh-shellhost is not needed. Is updating the OS an option?
Also, all releases have 386 binaries within OpenSSH-Win32.zip
VScode used winpty
Are you running SSH through the VSCode extension?
No, but VSCode does not offer to update the Windows version - it just uses what works \8^)
Prerequisites
Steps to reproduce
Server side------------------- C:\Program Files\OpenSSH>"C:\Program Files\OpenSSH\"sshd -ddd ... debug1: sshd version OpenSSH_for_Windows_9.4, LibreSSL 3.7.3 ... debug3: shell: "c:\\windows\\system32\\cmd.exe" debug3: shell_option: /c debug3: couldn't find CreatePseudoConsole() in kernel32.dll dll debug3: This windows OS doesn't support conpty debug3: pty commandline: "C:\\Program Files\\OpenSSH\\ssh-shellhost.exe" ---pty "c:\\windows\\system32\\cmd.exe"
Client side---------------------------------- mode con cols=80 lines=9999 ssh -vvv Konstantin.Abakumov@127.0.0.1 ... debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_9.4 ... debug3: client_repledge: enter debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console debug3: couldn't find CreatePseudoConsole() in kernel32.dll dll debug3: This windows OS doesn't support conpty debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing ....
uf\konstantin.abakumov@WUFRS0661151 C:\Users\user>mode con
Состояние устройства CON:
------------------------------------ ssh-shellhost.exe work well on start-----------------------------------------------
------------------------------------I enlarge width of console-----------------------------------------------
Client side---------------------------------- debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98
Server side------------------- debug3: receive packet: type 98 debug1: server_input_channel_req: channel 0 request window-change reply 0 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req window-change debug3: receive packet: type 98 debug1: server_input_channel_req: channel 0 request window-change reply 0 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req window-change
Client side---------------------------------- uf\konstantin.abakumov@WUFRS0661151 C:\Users\user>mode con
Состояние устройства CON:
------------------------------------Nothing happend!!! BUG in ssh-shellhost.exe -----------------------------------------------
exit ------------------------------------End session----------------------------------------------- ------------------------------------New session with same console-----------------------------------------------
ssh Konstantin.Abakumov@127.0.0.1 uf\konstantin.abakumov@WUFRS0661151 C:\Users\user>mode con
Состояние устройства CON:
------------------------------------ ssh-shellhost.exe work well on start-----------------------------------------------
Expected behavior
Actual behavior
Error details
Environment data
Version
OpenSSH_for_Windows_9.4, LibreSSL 3.7.3
Visuals
No response