Each time I need to use git for both my Linux server as well as my home computer running Windows 10, I need to start ssh-agent, then provide it with my GitHub RSA key, the problem being that doing so requires root privileges (i.e. entering the root password with each instance of needing to run
ssh-add <keyname>). So within this I have three questions.
My first question is, why is this needed for Git, but not for SSH connections or SSH copy programs?
How do I make a single bash script that automatically starts the
ssh-agentand adds all of my keys via
ssh-add, even though those operations require passwords.
How do I use the aforementioned script on the GitHub bash command line programs for Windows?