Upon generating ssh-keys to github account, I create a new file to hold the the keys as:
ssh-keygen -f ~/.ssh/github
Then do the following steps:
eval $(ssh-agent -s)
ssh-add ~/.ssh/github
Add add the public key to github account.
However, after restart the machine, it prompt that I have not the access to the private repo,
I have to repeat
eval $(ssh-agent -s)
ssh-add ~/.ssh/github
to gain the access to the repository.
Everytime, I re-login a terminal, the above steps should be repeated.
How could solve the problem?