My MacBook rebooted and when it does that I have to typically add my private key via ssh-add, using the following command
$ssh-add ~/.ssh/id_rsa
And I never have any issues, Today I am getting this error
ssh-add ~/.ssh/id_rsa
Error connecting to agent: Connection refused
What may be causing this? How do I fix it?
Start the ssh-agent
by running
$ eval "$(ssh-agent)"
in your terminal window.
I'm using iTerm2
on mac, I just Session
-> Restart session
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With