How do I use GitHub with SSH without having to run ssh-agent? How do I use GitHub with SSH without having to run ssh-agent? git git

How do I use GitHub with SSH without having to run ssh-agent?


You can use config file in .ssh directory of your user in order to configure key for particular server:

# ~/.ssh/configHost github.com    IdentityFile ~/.ssh/git_id_rsa

You can find more detail on Simplify Your Life With an SSH Config File.