Ctrl+C Terminated Whole SSH Session Rather Than The Executing Command Inside SSH Session #14827

Closed
opened 2026-01-31 04:20:27 +00:00 by claunia · 2 comments
Owner

Originally created by @wenijinew on GitHub (Aug 9, 2021).

Windows Terminal version (or Windows build number)

10.0.18363, 1.9.1942.0

Other Software

OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5

Steps to reproduce

SSH to remote server (E.g. Command line of the profile: ssh NAME@HOST)
Run command which could last for long time, for example "tree" under one big directory.
Ctrl+C

Expected Behavior

The command in SSH session is terminated

Actual Behavior

SSH session is terminated

Originally created by @wenijinew on GitHub (Aug 9, 2021). ### Windows Terminal version (or Windows build number) 10.0.18363, 1.9.1942.0 ### Other Software OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 ### Steps to reproduce SSH to remote server (E.g. Command line of the profile: ssh NAME@HOST) Run command which could last for long time, for example "tree" under one big directory. Ctrl+C ### Expected Behavior The command in SSH session is terminated ### Actual Behavior SSH session is terminated
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 04:20:27 +00:00
Author
Owner

@DHowett commented on GitHub (Aug 9, 2021):

Terminal just sends the ^C over to ssh.exe, which handles it directly. I don't believe we're doing anything strange here.

If you use ssh.exe outside Terminal (same version!), how does it handle this case?

@DHowett commented on GitHub (Aug 9, 2021): Terminal just sends the `^C` over to ssh.exe, which handles it directly. I don't believe we're doing anything strange here. If you use ssh.exe _outside_ Terminal (same version!), how does it handle this case?
Author
Owner

@wenijinew commented on GitHub (Aug 10, 2021):

@DHowett

You are right. We can close this. Thanks

@wenijinew commented on GitHub (Aug 10, 2021): @DHowett You are right. We can close this. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14827