mkdir -p ~/.config && touch ~/.config/ssh-agent.pid
- Paste the contents of
ssh-agent-manage.sh
into your.bashrc
or.bash_profile
or similar killall -9 ssh-agent
- Start a new terminal session (note: old sessions will not see ssh-agent, only new ones)
This snippet, when included in .bashrc
, will ensure that your session has a working ssh-agent
with all your ssh keys loaded into it. It does this without creating separate ssh-agent
processes by: