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