-
当OSX钥匙串被锁定时,go-ssh-agent-locker会从ssh-agent中移除密钥
资源介绍
go-ssh-agent-locker
go-ssh-agent-locker 是一个简单的应用程序,只要钥匙串被锁定,它就会杀死 ssh-agent
安装
go get github.com/MDrollette/go-ssh-agent-locker
cp $GOPATH/bin/go-ssh-agent-locker /usr/local/bin/go-ssh-agent-locker
cp $GOPATH/src/github.com/MDrollette/go-ssh-agent-locker/com.drollette.matt.go-ssh-agent-locker.plist ~/Library/LaunchAgents/com.drollette.matt.go-ssh-agent-locker.plist
launchctl load ~/Library/Launc