Skip to content

Instantly share code, notes, and snippets.

@ezmobius
Created May 11, 2009 18:58
Show Gist options
  • Select an option

  • Save ezmobius/110109 to your computer and use it in GitHub Desktop.

Select an option

Save ezmobius/110109 to your computer and use it in GitHub Desktop.
function start_agent {
echo "Initializing new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV}
echo succeeded
chmod 600 ${SSH_ENV}
. ${SSH_ENV} > /dev/null
/usr/bin/ssh-add;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment