Skip to main content

macOS keeps asking for my ssh password every time I use git

Updated 1 min readMarkdown
macOS keeps asking for my ssh password every time I use git

On macOS Sierra and above, you will need to input your password every time your ssh key is accessed. This can be quite annoying if you need to do it multiple times every hour, and, if your password is complex. You can let macOS handle the password for you, by following the guide below.

Edit ~/.ssh/config and add the following to the end of the file:

Host *
    UseKeychain yes

You can also use the script below to do it for you

Source: https://superuser.com/questions/1127067/macos-keeps-asking-my-ssh-passphrase-since-i-updated-to-sierra

278 views

No comments yet. Be the first to comment.