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
ctrl+c in gitbash on windows terminal kills ssh remote sessions #12431
Comments
|
Bug is also discussed in git for windows: |
|
Okay, I thought this issue was with my keyboard. This is happening here multiple times per day, and it's making me crazy. |
|
This also happen to me when using puTTY via plink command. |
|
huh, so this is like the opposite of #8034 |
|
I've been seeing this every since I updated from Also, I've noticed something odd: after accidentally killing an SSH session in this way, the terminal stops echoing characters when I type them. |
|
Got the same behavior but also with the older Git Version: Also the keyboard buttons home and end seem to behave weird, but only on some kind of target machines (ARM/Yoctolinux/Busybox in my case) on Ubuntu 20 home and end works. but Ctrl-c also closes the connection. Running windows Terminal 1.12.10733.0 from the store on: Reinstalled Windows Terminal, Reset the settings nothing worked so far. |
|
I noticed this bug a while ago already and haven't found a fix for it. So far I've stuck to 2.34.1, because I really need SSH and ctrl+c to work. Would be nice to know, if the issue is caused by Windows Terminal or Gitbash, though. |
|
ssh in Command Prompt (on Windows Terminal) has no such issue |
|
Seems to be fixed in git version 2.36.0.windows.1, running on Windows Terminal build 1.12.10982.0. |
|
@joaommartins that's great to hear! I had a sneaking suspicion this was a git bash issue, but I was having a hard time tracking this down. Can any other folks confirm/? Hopefully we can just close this one out |
|
I can confirm, works fine with 2.36.0 again. |
|
im runnning git version 2.36.0.windows.1 and still seeing this issue. Should i attempt a rollback? or uninstall and re-install git? |
|
Same for me. That's awfull. |
|
marked |
|
I am on 2.36.1.windows.1 and still getting issue, |
just upgraded (chocolatey) to microsoft-windows-terminal 1.14.1861.0 + git 2.37.0 |
|
I'm having the same issue, but only when using Git Bash. In the PowerShell and CMD, it works correctly. Any idea? |
|
@OrlinAlvarado not sure that everyone noticed the workaround quoted in git-for-windows/git/issues/3657 and that worked for me
|
Hi, @boly38 I added what you suggested, but CTRL+C, exit my ssh session. |
@OrlinAlvarado 2.36.0 works. |
|
@Shenmin-Z thanks |
|
I rolled back till https://github.com/git-for-windows/git/releases/tag/v2.32.0.windows.1 to solve this issue. What a long and winding road. |
|
reverted back to 2.30.0 to get this to work again |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Perfect, works with new Version of Git! 2.38 |
|
It really depends on the SSH connection. For example The latest one (gitbash v2.38.1) is working fine with SSH connections to AWS EC2 instances. But it does not work with Vagrant (Oracle VM).
|
|
For me it happen when I have X-Forwarding enabled (e.g. -Y or -X) or the equivalent setting in .ssh/config. Without it - no problems. |
|
This issue made Windows terminal quite useless for me, and I always thought this was a Win Term issue. This thread made me realise that the culprit could be git bash. Problem seems to have gone away for SSH to AWS EC2 (my usecase) with gitbash v2.38.1. |
|
still happening in version 2.39.0.windows.1 using vagrant |
|
Had the same issue with 2.35.0, updated to 2.39.0(2), now it's working fine. |
|
I had new installation of windows 10 and updated it. Installed |
|
2.39.1 still happening |
|
This issue still observed in Git-2.39.0. |
|
Dito, really annoying! |
|
This still seem to be an issue on git 2.40.0, OpenSSH_9.2.p1 This also happens with these versions of git/OpenSSH using a vanilla powershell window. after connecting via ssh, issuing a CTRL-C (which is muscle memory to end interrupt the remote task) results in client_loop: send disconnect: Broken pipe |
Windows Terminal version
1.11.3471.0
Windows build number
10.0.19043.0
Other Software
Gitbash - mintty 3.5.2
Steps to reproduce
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
The text was updated successfully, but these errors were encountered: