skip to Main Content

I am using Mac OS as my main operating system. I installed fedora 37 server edition in a VMware workstation as part of my course in college. I am trying to customize my prompt using this repo https://github.com/andresgongora/synth-shell.

I have installed git already. I also have power line-fonts installed. The issue I am having comes with this command: git clone –recursive https://github.com/andresgongora/synth-shell.git

When typed and executed I get a prompt asking me for a GitHub username and password. I enter my credentials and I get an error stating "Authentication Failed for https://github.com/andresgongora/synth-shell.git" even though my credentials are correct.

I have tried putting my username and password (both combinations separately) and I get an event error. I configured a global username and that doesn’t work either.

Am I supposed to log in to my GitHub before cloning this repo? Does anyone else experience this or have a workaround?

I have tried putting my username and password (both combinations separately) and I get an event error. I configured a global git username and that doesn’t work either.

Sites used:
Can't clone a github repo on Linux via HTTPS
https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git
https://documentation.red-gate.com/soco/troubleshooting/authentication-failed-when-cloning-from-github

Edit: I have also tried setting up a token to log in with. The only issue I am having is my linux distro does not support copy and paste so I am having to type everything out. When the password prompt comes up everything is blank to hide your password so I can’t even check for spelling errors.

2

Answers


  1. Chosen as BEST ANSWER

    I managed to fix my issue by using cockpit in my web browser. Doing this allowed my to copy and paste my information and everything worked first try.

    Beginner problem.


  2. As of mid 2021, github the company is now enforcing git HTTPS authentication to use an access token rather than username+password. See this stackoverflow answer for full information.

    One way forward is to generate an SSH key, and upload the public portion to github.

    It warrants mentioning that this change is specific to Github Inc., the Microsoft subsidiary. There have not been any changes to git, the distributed version control system. Other, similar repository hosting services may not necessarily bar you from authenticating via username+password. Gitlab is one example.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search