Why do I have to keep unlocking my SSH key?

Solution 1:

Found it elsewhere. I had to do this:

ssh-add ~/.ssh/id_rsa

Solution 2:

For anyone who get's a Could not open a connection to your authentication agent when executing ssh-add will need to start ssh-agent first.

    eval `ssh-agent`
    ssh-add ~/.ssh/id_rsa