You are smart. You use ssh-agent. But when you start a new terminal, you have to start ssh-agent again. That is annoying.
If you put this in your .bashrc then you only need to enter your pass phrase once:
alias sshr='export SSH_AUTH_SOCK=`cat ~/.ssh/SSH_AUTH_SOCK`;export SSH_AGENT_PID=`cat ~/.ssh/SSH_AGENT_PID`;' alias ssha='ssh-add -l || eval `ssh-agent` ssh-add ~/.ssh/{identity,id_*[^b]} && echo $SSH_AUTH_SOCK > ~/.ssh/SSH_AUTH_SOCK && echo $SSH_AGENT_PID > ~/.ssh/SSH_AGENT_PID' sshr ssha
Advertisements
Pingback: New Linux installation checklist | Ole Tange