Because I always forget and because I am getting into the good habit of connecting via SSH for everything, here's a note to myself on how to get SSH deployment keys running in my typical process:
chmod 600on it
ssh-add ~/.ssh/my_private_key &>/dev/null
eval `ssh-agent -s` &>/dev/nullin the profile right before it (I think it depends on whether the key file has a default file name like "id_rsa")
Edited again because apparently I'm an idiot and that's a bad idea:
trap '[ -n "$SSH_AGENT_PID" ] && eval $(/usr/bin/ssh-agent -k)' 0
eval $(ssh-agent -s)
The 'trap' line will kill the ssh-agent when you log out. You can also feel free to add "&>/dev/null" to the end of those lines to silence them, once you are sure they are working.