1

I'm using Ubuntu 18.04 where I have set up an SSH key to be used with Git. On one of the first prompts when I used the key I checked the option to stop asking me for the SSH password when my user is logged in. I want to revert on that choice so that I will be again prompted for the SSH password.

0

In case git is using ssh-agent (I am guessing a bit here), you would have to issue the command

ssh-add -D

to make it forget cached credentials for all your private keys. Those credentials would have been forgotten after a reboot of the system as well.

| improve this answer | |
  • I tried that, but it did not work out. – Adam Payne Jun 13 '18 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.