SSH sessions break randomly #20885

Open
opened 2026-01-31 07:26:49 +00:00 by claunia · 0 comments
Owner

Originally created by @Feniksovich on GitHub (Nov 24, 2023).

Windows Terminal version

1.18.2822.0

Windows build number

10.0.22621.2715

Other Software

SSH Client: OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
SSH Server: OpenSSH_8.9p1 Ubuntu-3ubuntu0.4, OpenSSL 3.0.2 15 Mar 2022

Steps to reproduce

  1. Open SSH session with ssh user@host (actually I use authentication via pubkey: -i "/path/to/pubkey")
  2. Do not use the terminal for a while (~5 minutes or even less)
  3. Try writing a command and notice that it doesn't happening
  4. Finally get an error:
user@host ~ # client_loop: send disconnect: Connection reset

[process exited with code 255 (0x000000ff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

Expected Behavior

There should be no error ¯_(ツ)_/¯

Actual Behavior

SSH session breaks and process exits with non-zero code.

Originally created by @Feniksovich on GitHub (Nov 24, 2023). ### Windows Terminal version 1.18.2822.0 ### Windows build number 10.0.22621.2715 ### Other Software SSH Client: OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 SSH Server: OpenSSH_8.9p1 Ubuntu-3ubuntu0.4, OpenSSL 3.0.2 15 Mar 2022 ### Steps to reproduce 1. Open SSH session with `ssh user@host` (actually I use authentication via pubkey: `-i "/path/to/pubkey"`) 2. Do not use the terminal for a while (~5 minutes or even less) 3. Try writing a command and notice that it doesn't happening 4. Finally get an error: ``` user@host ~ # client_loop: send disconnect: Connection reset [process exited with code 255 (0x000000ff)] You can now close this terminal with Ctrl+D, or press Enter to restart. ``` ### Expected Behavior There should be no error ¯\_(ツ)_/¯ ### Actual Behavior SSH session breaks and process exits with non-zero code.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:26:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20885