]>
code.delx.au - monosys/blob - scripts/ssh-agent-setup
fb7ae3235b816e6ebc24ff147e66ac133826bcae
3 source ~
/.ssh_agent_env
5 # If the agent is running then exit without doing anything
6 if [ -n "${SSH_AGENT_PID}" ]; then
7 if ps
-o pid
=,command= -p "${SSH_AGENT_PID}" |
grep -q "${SSH_AGENT_PID} ssh-agent"; then
12 echo 'Starting SSH agent...'
13 ssh-agent |
grep -v 'echo Agent pid' > ~
/.ssh_agent_env
14 source ~
/.ssh_agent_env
16 echo 'Agent now running!'