How to avoid being asked for git passphrase

Mohammed Hammoud
Jul 23, 2017 · 1 min read

Ok so this is super annoying. Every time i wanted to make git pull/push or whatever my terminal was prompting me for my git passphrase. After some research I found a quite simple solution for my problem. If you’ve got the same struggle and want to get rid of it follow the steps below:

Open your terminal and start your ssh agent with:

eval $(ssh-agent)

Add your private key:

ssh-add

Save your private key for permanent use:

ssh-add -K

Happy hacking…

Mohammed Hammoud

Written by

Digital Designer, Backend and Frontend developer from Sweden with experience in usability.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade