"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?


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)

  • The original question is specific in asking about using the msysgit bash shell... – Thell Oct 25 '12 at 18:51
  • 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 Oct 25 '12 at 18:52
  • Good point. Nothing at all. – Thell Oct 25 '12 at 18:59
  • More recent information about PowerShell Remoting over SSH here – David P Dec 17 '18 at 14:15

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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.