I m trying to save ssh authentication with the command ssh-add
for sudo usage:
linux$ sudo ssh-add /root/.ssh/id_rsa
Could not open a connection to your authentication agent.
but as indicated it returns error
I made some research and I found that I have to to execute the command eval "ssh-agent -s"
as indicated in the following link: https://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent/17695338#17695338
But I got error if execute it with sudo command
$ sudo eval `ssh-agent -s`
sudo: eval: command not found
What I m missing?