Sourabh Sharma
Sourabh Sharma

Reputation: 8322

SSH key stop working on MAC OS Sierra 10.12.3 in source tree

enter image description here

Source tree was working fine using SSH but after upgrading my mac to 'OS Sierra' it stop working. Giving Error Permission Denied.

Please Help

Upvotes: 4

Views: 855

Answers (2)

Dan Lowe
Dan Lowe

Reputation: 56528

macOS Sierra changed the agent behavior for ssh. You can restore the old behavior, though. Add this to the top of ~/.ssh/config:

AddKeysToAgent yes

If you would like to store key passphrases in the keychain, you can also add:

UseKeychain yes

Upvotes: 1

krish
krish

Reputation: 4112

Open a terminal and type "ssh-add", when prompted type in the password for your SSH RSA key. To verify if you have an SSH RSA key in your profile, type "ssh-add -L". After upgrading to Sierra it will say something like "The agent has no identities".

Upvotes: 4

Related Questions