Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'how to make it so much easier' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
how to make it so much easier
Authored by: thvv on Dec 24, '03 09:25:14AM
The hint as posted did not work for me on Panther. Three things were missing.. backticks around the ssh-agent, -s on the ssh-agent, and -S instead of -p in the tests.


# Start an ssh-agent for global use (and detect agent-forwarding).
if [ -z "$SSH_AUTH_SOCK" -o ! -S "$SSH_AUTH_SOCK" ] ; then
export SSH_AUTH_SOCK=/tmp/ssh-yoda-agent
if [ ! -S "$SSH_AUTH_SOCK" ] ; then
`ssh-agent -a $SSH_AUTH_SOCK -s`
fi
fi


[ Reply to This | # ]