1

As in the title. I WANT to type in my password every time I do a git push or pull. Currently, it prompts me to enter in the passphrase every restart and then caches it, but I don't want that.

I'm not sure what I did to cause this as it never happened before on any of my other machines across the years

IanQ
  • 1,831
  • 5
  • 20
  • 29

1 Answers1

0

With SSH, only a passphrase (if you have created a private SSH key protected with a passphrase) would be asked, then cached by the ssh-agent.

Typing a password would mean using an HTTPS URL (one requiring your remote GitHub or GitLab user account name, and password or token).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Sure, but I don't want it to be cached by the ssh-agent. How would I make it stop? – IanQ Aug 05 '21 at 07:44
  • @IanQuah By killing the ssh-agent process. (https://stackoverflow.com/a/67991080/6309) – VonC Aug 05 '21 at 08:26