0

I am trying to setup my git to let me clone/push/pull/... from and to GitHub in the terminal without entering my Username and Password, but I am getting this error:

❯ git clone https://github.com/Johannes-Krabbe/private-repo.git
Cloning into 'private-repo'...
Username for 'https://github.com': Johannes-Krabbe
Password for 'https://[email protected]':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Johannes-Krabbe/private-repo.git/'

I followed both of the following tutorials:

When I run ❯ ssh -T [email protected] I get this output:

Hi Johannes-Krabbe! You've successfully authenticated, but GitHub does not provide shell access.

1 Answer 1

3

When using git via ssh you cannot use https:// URLs, but specific ssh addresses instead. In your case use [email protected]:Johannes-Krabbe/private-repo.git to access your repository.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.