Reputation: 95
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
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