6

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

2 Answers 2

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)

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

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .