RStudio github push with two factor authentication

Hi all

Having not used github for a while I find they are now requiring two factor authentication. Fair enough. Have set it up via 1password on my phone, which gives me a code to enter on login, all works fine. The only problem comes when I try to push to a repo from Rstudio: I get a prompt for user name and password but that's it and then I get an error message:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see Token authentication requirements for Git operations | The GitHub Blog for more information.
fatal: Authentication failed for 'GitHub - rjknell/Biostatistics: Package for biostatistics tutorials'

I've had a good look but can't find anything useful to help me get around this. Any suggestions? Surely lots of people are having this problem.

Thanks

2 Likes

A resource that comes to mind is usethis vignette Managing Git(Hub) Credentials, maybe it can help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.