Se você colocar
ssh-agent bash ssh-add
no seu .bashrc , você obterá uma recursão infinita: o shell executando .bashrc starts ssh-agent , que inicia outra cópia de bash ... que executará novamente .bashrc , e o processo vai repetir.
Você vai querer algo assim:
if [[ "$SSH_AUTH_SOCK" = "" ]]; then
# on the first round, we do this...
exec ssh-agent bash
else
# ... and when ssh-agent is running, we do this instead.
ssh-add
fi