ssh-agent in Cygwin

SSH_PRIVATE_KEY=”${HOME}/.ssh/id_rsa”
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS=”-s”

if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ];
then
eval `$SSHAGENT $SSHAGENTARGS`
trap “kill $SSH_AGENT_PID” 0
fi

echo “SSH_AUTH_SOCK: ” ${SSH_AUTH_SOCK}
echo “SSH_AGENT_PID: ” ${SSH_AGENT_PID}

ssh-add ${SSH_PRIVATE_KEY}

Tags: ,

104 Responses to “ssh-agent in Cygwin”

  1. Nicholas says:

    rue@hearty.tableau” rel=”nofollow”>.…

    ñýíêñ çà èíôó….

  2. Hubert says:

    geraghty@misinterpreters.upperorupper” rel=”nofollow”>.…

    ñýíêñ çà èíôó!…

  3. Arnold says:

    tropical@impervious.chrissake” rel=”nofollow”>.…

    tnx!!…

  4. Derrick says:

    gothicism@depriving.pedantic” rel=”nofollow”>.…

    ñïñ çà èíôó!!…