~/.bashrc
if [ -z "$SSH_AUTH_SOCK" ] ; then
  # This doesn't work
  echo 'my_passphrase' | eval `ssh-agent -s`
  ssh-add
fi
When I run a terminal, I see this error 3 times Could not open a connection to your authentication agent., and when I try to connect to my remote server through ssh, I'm asked to enter my passphrase.
How do I make it work?
