Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ssh-agent


ssh-agent autostart

Code Block
title.bashrc
AGENT=`ps -ef |grep ssh-agent|grep $USER|grep -v grep`
if [ "${AGENT}" = "" ];
then
 ssh-agent > .ssh/agent_env
 source .ssh/agent_env
else
 source .ssh/agent_env
fi

KEYLIST=`ssh-add -l`
if [ "${KEYLIST}" = "The agent has no identities." ];
then
 ssh-add
fi

...