Accessing a remote Windows "Git Bash" prompt from a Linux machine?

6

1

"Git Bash" is a program that comes with Git for Windows. In order to get to a Git Bash prompt on a remote Windows machine from a linux machine, my usual process is to use remmina to open an RDP connection, then to open a new Git Bash window.

Is there a way to log in using my bash shell instead of having to muck with GUI stuff?

Matt Alexander

Posted 2012-10-25T18:16:10.013

Reputation: 749

Answers

5

As far as I know, PowerShell lets you use SSH to log in to the Windows box remotely to access the command line shell...

EDIT I found this PowerShell server (free for personal usage with 1 connection)

ppeterka

Posted 2012-10-25T18:16:10.013

Reputation: 674

More recent information about PowerShell Remoting over SSH here

– David P – 2018-12-17T14:15:36.587

The original question is specific in asking about using the msysgit bash shell... – Thell – 2012-10-25T18:51:14.243

1@Thell: What keeps one from starting the git bash shell from Powershell? BTW your solution does exactly the same: log in through SSH of some kind, then start the git bash shell. But not the second step was the tough one, IMHO. – ppeterka – 2012-10-25T18:52:32.060

Good point. Nothing at all. – Thell – 2012-10-25T18:59:03.910

6

All you need is an ssh server that allows you to define your startup.

For example, freesshd, then set the command shell to the same as your normal git bash shortcut would set it, ( C:\Windows\System32\cmd.exe /c ""C:\Program Files\Git\bin\sh.exe" --login -i" ). Since freesshd can run as a service you'll always be good to go.

Thell

Posted 2012-10-25T18:16:10.013

Reputation: 422