Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ssh keeps forgetting the keys

Tags:

git

github

ssh

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?

like image 899
retrobitguy Avatar asked Apr 18 '15 10:04

retrobitguy


1 Answers

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

eval `ssh-agent`
ssh-add
like image 186
Stuart Siegler Avatar answered Nov 04 '22 05:11

Stuart Siegler