Skip to main content

Command Palette

Search for a command to run...

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

Updated
1 min read
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