Everytime I login into our CentOS 5, MediaTemple (dv) server, I have to do:
ssh-agent $BASH ssh-add .ssh/my_id
once I've managed to login. This is used for our server to participate in our git workflow, and as we iterate quite a bit while in development, I'm growing tired of doing the same over and over again.
Adding this to the server's .bash_profile does not quite work, and my very limited understanding of ssh tells me it's because doing
ssh_agent $BASH pretty much just spawns a new login window (and thus, it stops executing the next lines of the file...).
How do I get the server to have it's key working every time I remotely login into it?