If you have ssh-agent
running in one shell, when you open up another shell, you do not have ssh-agent running in the new shell.
You will have to run the command for each shell you are planning to use
with SSH if you want to use ssh-agent.
You can see what keys are being used by ssh-agent with
the following command: