ssh-add Error connecting to agent: Connection refused

mv ~/.ssh/ssh-agent.localhost.localdomain.sock{,_backup}

Then you can relogin to your account and ssh-add work again. It could happen after system crash.

Leave a Reply

Your email address will not be published. Required fields are marked *