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

Compare with Current View Page History

« Previous Version 2 Next »

ssh-agent


ssh-agent autostart

.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
  • No labels