Skip to content

Instantly share code, notes, and snippets.

@islamz1214
Created January 21, 2020 01:03
Show Gist options
  • Save islamz1214/630407eec72d047276d14fbda2593f9b to your computer and use it in GitHub Desktop.
Save islamz1214/630407eec72d047276d14fbda2593f9b to your computer and use it in GitHub Desktop.
SSH Agent script
if ps -p $SSH_AGENT_PID > /dev/null
then
echo "ssh-agent is already running"
else
eval `ssh-agent -s`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment