Setting Up Server SSH Access

October 4, 2013

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:

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) ssh-add ~/.ssh/bitbucket_read

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.

Previously: The Next 25 Years | After this: Bananas: A Play in One Act | All Posts
Tagged: ssh notes