Ssh keeps forgetting the keys


This is the problem: I use Git Shell installed with GitHub for Windows.
I have 3 ssh keys inside C:\Users\MyName\.ssh:

  • github_rsa (this is the key generated by github for windows)
  • id_rsa (generated by me)
  • tm_rsa (generated by me)

I inserted the key with this command:

ssh-add ~/.ssh/github_rsa
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/tm_rsa

Everytime I reboot the computer, ssh keeps forgetting the keys. if i do this command ssh-add -L, it shows only one key, usually github_rsa.

How can I avoid having to enter the keys each time?


I think you have to add it to your git bash shell, in .bashrc

eval `ssh-agent`

Answered By – Stuart Siegler

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published