Carbon
Carbon

Reputation: 333

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

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?

Upvotes: 2

Views: 2973

Answers (1)

j6t
j6t

Reputation: 13377

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.

Upvotes: 1

Related Questions