简体   繁体   中英

How to Figure Which SSH Client is Used by Git in Git Bash on Windows

I want to figure which SSH client is used by git commands when running git bash on windows. Is there any git command I can run that will display the ssh client path?

With a recent enough git version , you can use trace2 to display what Git is trying to do:

GIT_TRACE2=1 git clone git@github.com:<me>/<myrepo>
GIT_TRACE2_EVENT=1 git clone git@github.com:<me>/<myrepo>

You can also set the GIT_SSH_COMMAND environment variable to ssh (including its full path) if you want to make sure which SSH client is used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM