Trying to run ssh as a new tab #23277

Closed
opened 2026-01-31 08:37:33 +00:00 by claunia · 2 comments
Owner

Originally created by @SPgreg on GitHub (May 21, 2025).

Hi Guys,

I'm having trouble getting this to work:

wt -w 0 nt --title "SSH to IP " -- "C:\Program Files\Git\usr\bin\ssh.exe" user@IP

Basically, this does open a new tab and the new tab is SSH, everything works great, until I do what we do a hundred times and hit "ctrl+c"

I'm expecting a new command line in my existing terminal and I get a terminal that just dies.

Any advice? I've spent 4 hours debugging this already.

Originally created by @SPgreg on GitHub (May 21, 2025). Hi Guys, I'm having trouble getting this to work: wt -w 0 nt --title "SSH to IP " -- "C:\\Program Files\\Git\\usr\\bin\\ssh.exe" user@IP Basically, this does open a new tab and the new tab is SSH, everything works great, until I do what we do a hundred times and hit "ctrl+c" I'm expecting a new command line in my existing terminal and I get a terminal that just dies. Any advice? I've spent 4 hours debugging this already.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 08:37:33 +00:00
Author
Owner

@DHowett commented on GitHub (May 21, 2025):

For what it's worth, I expect the build of ssh that comes with git to work properly only in the controlled environment provided by Git Bash.

Try using the version of ssh that comes with Windows? It should be on your PATH as ssh.

@DHowett commented on GitHub (May 21, 2025): For what it's worth, I expect the build of ssh that comes with git to work properly only in the controlled environment provided by Git Bash. Try using the version of ssh that comes with Windows? It should be on your PATH as `ssh`.
Author
Owner

@SPgreg commented on GitHub (May 21, 2025):

You were absolutely right. I thought it was a bug with windows terminal but was a bug with git-bash's ssh and I only had to upgrade git for windows. Thank you!

@SPgreg commented on GitHub (May 21, 2025): You were absolutely right. I thought it was a bug with windows terminal but was a bug with git-bash's ssh and I only had to upgrade git for windows. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23277