Skip to content

Instantly share code, notes, and snippets.

@h4de5
h4de5 / sagent.sh
Last active November 30, 2017 10:06
OUTDATED - Shares the same `ssh-agent` among multiple Cygwin terminals. Source: http://superuser.com/a/141241
# THERE IS NOW A BETTER WAY TO DO THIS - SEE wsl-ssh-pageant
function sshagent_findsockets {
find /tmp -uid $(id -u) -type s -name agent.\* 2>/dev/null
}
function sshagent_testsocket {
if [ ! -x "$(which ssh-add)" ] ; then
echo "ssh-add is not available; agent testing aborted"
return 1