3days since the last Git and AI fuck-up

How to stop password prompts on any git command in macOS?

Mandeep Singhfrom the archive

Ever since macOS 10.12 Sierra update for ssh, people have been facing issues with git prompting for ssh passphrase every time they run any git command.

Although It’s been a long time since the release, I still see many developers asking me this, so I thought to write a simple solution here.

What do you need to do?

For macOS 10.12, Sierra ssh-add -K needs to be run after every reboot. To avoid this, create ~/.ssh/config this content.

shell
Host *
    UseKeychain yes

That is all you need to do, and you are good to go.

Tagged solving-mistories, ssh, macos