Git is throwing below error when trying to run the command
git clone <<clone url>>:
remote: this repository, you must use the HTTPS remote with a personal access token
remote: or SSH with an SSH key and passphrase
remote: that has been authorized for this organization. Visit
remote: https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/ for more information. The requested URL returned error: 403
As mentioned in the error I went through the url- https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/, and followed the steps to configure SSL authorization.
In addition, I followed the steps for generating new SSH key and storing in SSH agent following this url: https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.
Also, I have configured the personal access token. Below is the screenshot:
Still, I am getting the same error as above.
Please let me know if further information is needed.
Check that, for your SSH key, you have (as in here):
Then try again, using an SSH URL
git clone git@github.com:<organization>/<repo>