Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh-reagent () {
- for agent in /tmp/ssh-*/agent.*; do
- export SSH_AUTH_SOCK=$agent
- if ssh-add -l 2>&1 > /dev/null; then
- echo Found working SSH Agent:
- ssh-add -l
- return
- fi
- done
- echo Cannot find ssh agent - maybe you should reconnect and forward it?
- }
Advertisement
Add Comment
Please, Sign In to add comment