DEV Community

Alexa Steinbrück
Alexa Steinbrück

Posted on

Github authentication facts I forget every two months

  • Git recommends SSH over HTTPS!
    • You make the decision for SSH/HTTPS, when you
      • clone a remote repository, or
      • assign a remote to a local repository
  • When you do HTTPS:
    • You can use the credential.helper in OSX to cache your password
    • PITFALL POTENTIAL: If you use 2FA, then your password is not your password, but your Personal Access Token, which you can create here
  • When you do SSH:
    • You need to have a key available. Otherwise you get "Not authenticated (public key error)" or something along these lines...
    • Test if you have a key by typing in the console: ssh -vT
    • If you dont have a key, then go create one:

Discussion (0)