Allows ssh in a cygwin session to use SSH keys loaded in Pageant, replacing functionality of the ssh-agent. Allows you to maintain one copy of SSH keys that are used by both PuTTY and ssh.
Main page for charade: http://github.com/wesleyd/charade.
git clone http://github.com/wesleyd/charade.git
cd charade && make
cp charade.exe ~/bin
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
NOTE: The .bash_profile setup isn't the best as you get a new charade process with each window. I don't care much about that since I don't have too many windows open, and as it's a proxy to Pageant which holds the actual keys, you don't have to add the private key to each charade instance. Also, when you close the Cygwin window, the charade process for that window will be killed.
env | grep SSH