• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer

My Code Guru

Coding Made Easy

  • Programming Languages
  • Web Technologies
  • Resources

How to Stop Git From Asking For Your SSH Passphrase on Mac

October 26, 2017 by Code Guru

If you have created  SSH keys to use on GitHub,  Git continues to ask you for your ssh passphrase every time I try to do a pull or a push.

So one way to stop Git from asking for your SSH Key passphrase is to add your private SSH Key as follows:

First start the SSH agent with:

eval $(ssh-agent)

Then add your private key to it:

ssh-add

To save your key permanently:

ssh-add -K

This will save your key by storing it in the keychain.

 

Photo by xmodulo

Last Updated on March 21, 2021 by Code Guru

Filed Under: Git

Primary Sidebar

More to See

The Top 20 Programming Languages

The Top 20 Programming Languages

April 24, 2018 By Code Guru

HTML5 Workflow

The World’s Most Powerful HTML5 Workflow

April 24, 2018 By Code Guru

Footer

About

My Code Guru is a new blog about computer programming resources, tips, tricks and techniques. The blog is intended for beginning or aspiring programmers to help them find the right coding resources quickly.

Recent

  • 5 Ways ChatGPT Can Help You Write Better Code Faster in 2023
  • How to Use Chrome Developer Tools
  • The Top 20 Programming Languages
  • The World’s Most Powerful HTML5 Workflow
  • How to Migrate a WordPress Site to a New Host

Search

Tags

How To Tutorials

Copyright © 2025 · MyCodeGuru.com . Website design by LightWeb Media