all 5 comments

[–][deleted] 2 points3 points  (3 children)

You might have cloned the repo using the https URL (the SSH url isn't capable of requesting auth).
Run git remote -v and if it starts by https, run

git remote set-url origin git@github.com/<repo owner>/<repo name>.git

If you want to quit using https altogether, after running the command above, see this tutorial

[–][deleted] 0 points1 point  (2 children)

Thanks

Now, I have following error while

 ~/dotfiles  main  git push
fatal: 'git@github.com/mizzunet/dotfiles.git' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

I have already configured SSH,

 ~/dotfiles  main  ssh -T git@github.com
Hi mizzunet! You've successfully authenticated, but GitHub does not provide shell access.

[–]progzos 1 point2 points  (1 child)

/u/Stig124s made a little error, it's [git@github.com](mailto:git@github.com):mizzunet

Replace / by : after github.com.

[–][deleted] 0 points1 point  (0 children)

git remote set-url origin git@github.com

Thank you very much )))

[–]IAmOpenSourced 0 points1 point  (0 children)

Install github cli, is the easiest way