Still requiring login after SSH authentication

后端 未结 4 2280
面向向阳花
面向向阳花 2021-01-30 00:22

I followed everything in the GitHub tutorial: https://help.github.com/articles/generating-ssh-keys

I did all the commands in the directory of my repository. I reached th

4条回答
  •  时光说笑
    2021-01-30 00:32

    Check your remotes via git remote -v.

    https:// URLs will always ask for a password, unless you configure a credential helper. More info on that in this question.

    The simplest solution for password-less git access would be to use the git remote set-url command and set an SSH url for the existing repo.

    In your case, git remote set-url origin git@github.com:name/repo.

    Then you should be able to git push origin without being asked for a password.

提交回复
热议问题