ctrl+c in gitbash on windows terminal kills ssh remote sessions #16712

Open
opened 2026-01-31 05:20:23 +00:00 by claunia · 0 comments
Owner

Originally created by @avasant21 on GitHub (Feb 8, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19043.0

Other Software

Gitbash - mintty 3.5.2

Steps to reproduce

  1. Added the gitbash as default profile in Windows Terminal
  2. Logged into ssh remote systems
  3. Pressing ctlr+c(keyboard interrupt) kills the remote sessions and brings the prompt back to git bash

This behavior is not observed when directly running on Gitbash terminal

Expected Behavior

ctlr+c should just interrupt the current process not the sessions

Actual Behavior

Pressing ctlr+c(keyboard interrupt) kills the remote sessions and brings the prompt back to git bash

Originally created by @avasant21 on GitHub (Feb 8, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19043.0 ### Other Software Gitbash - mintty 3.5.2 ### Steps to reproduce 1. Added the gitbash as default profile in Windows Terminal 2. Logged into ssh remote systems 3. Pressing ctlr+c(keyboard interrupt) kills the remote sessions and brings the prompt back to git bash This behavior is not observed when directly running on Gitbash terminal ### Expected Behavior ctlr+c should just interrupt the current process not the sessions ### Actual Behavior Pressing ctlr+c(keyboard interrupt) kills the remote sessions and brings the prompt back to git bash
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16712