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