I recently setup
openssh so I could use it with
In the process of setting it up (as per this article) I ran the commands:
$ eval "$(ssh-agent -s)" $ ssh-add ~/.ssh/<name of key>
Some time later, after I logged out and back in I tried to use
git push I got an error. The solution to this error was running those same commands again.
Please tell me how I can
- Keep the
ssh-agentrunning so I don't have to start a new one
- Remember the keys I've added so I don't have to add them everytime
Just to clarify, I use zsh so certain bash features won't work in my .zshrc.
ssh-agentfor and how does it work before trying to suit it your twisted use case.