How can I perform a `git pull` without re-entering my SSH password?

前端 未结 5 1087
挽巷
挽巷 2021-01-30 03:48

Is it possible to configure git/ssh so I don\'t have to enter my passphrase every time I want to perform a git pull? Note that the repo is a private

5条回答
  •  一向
    一向 (楼主)
    2021-01-30 04:31

    Your situation is now fixed, however for me it was the fact that I had more than one key in ~/.ssh/

    To resolve the problem I had to create a file called ~/.ssh/config and add the line:

    IdentityFile ~/.ssh/my_key2_rsa
    

    where ~/.ssh/my_key2_rsa is my key.

提交回复
热议问题