husker
husker

Reputation: 95

How do I make my SSH settings stick for my repository on macOS?

Every time I restart, I need to execute ssh-add, or git fetch will fail and give me a "permission denied" message. How do I solve it?

Upvotes: 1

Views: 100

Answers (1)

VonC
VonC

Reputation: 1323653

On mac, you can use ssh-add -K ~/.ssh/your_private_key

If not, you need to add that step in ~/.profile.
You have other alternatives detailed in "Add private key permanently with ssh-add on Ubuntu" which might apply to MacOS as well.

Upvotes: 1

Related Questions