You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

ssh-agent autostart

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


  • No labels