Search code examples
gitsshgitlabssh-keysgoogle-authenticator

Git Clone over SSH when Google Authenticator is in use


I've not found a suitable answer to this, if the ssh server in use requires Google Authenticator for 2FA, how can this be used with git (for example git clone, git push etc)?


Solution

  • To my knowledge you have to switch your GIT repository to HTTPS to use 2FA which will give additional personal access token on your mobile device or like that in addition to your password.