Use GitHub Personal Access Tokens when you can’t use SSH keys
What I learned today — 22 February 2018
1 min readFeb 22, 2018
If you’ve enabled 2-factor authentication (2FA) on your GitHub account (and you should, especially if you use it for work!) you might find yourself in a position where you can’t access your account with your SSH keys and you can’t use a password without 2FA, like when cloning a repository on a server where you don’t have your keys, for example. In this case you can create a Personal Access Token and use that in the place of your password. Then GitHub won’t request 2FA.