Changing the SSH client in Git after you've installed it

1.7k Views Asked by At

Hi We've just started using Git. I went through the install instructions as written down by our Tech support group. I used the defaults they've suggested. However there are certain settings I picked the default for at this time which I might wish to change in the future.

One example would be the SSH client program. The default was to use the bundled OpenSSH client. However I'm using MobaXterm as my current general ssh client and I'd like to stay consistent with my tools.

So how would I be able to switch the SSH client to be MobaXterm after I've already installed Git with it's default settings?

1

There are 1 best solutions below

3
On

You can set environment variables GIT_SSH or GIT_SSH_COMMAND to point to the program of preference.

A necessary precondition is that the program uses one of the command line interface variants that Git understands, see GIT_SSH_VARIANT.