Reputation: 817
Have a ssh-key here c:/Users/User1/.ssh/github_rsa. I added it to ssh-agent using commands
eval $(ssh-agent -s)
ssh-add ~/.ssh/githab_rsa
After rebooting PC ssh agent does not see my ssh key. I have to add it once more using commands
eval $(ssh-agent -s)
ssh-add ~/.ssh/githab_rsa
How to urge ssh-agent to remember my ssh key on PC.
Upvotes: 1
Views: 738
Reputation: 51
This is a pretty old question, but it can be useful for someone else. A few thing to check:
Run where ssh
. This command will show the available ssh versions. If there are more than one version they can conflict with each other. Try to set the default ssh version as it is described here: https://www.fmendo.com/blog/configure-git-windows-openssh/
Try to run ssh -T [email protected]
. This will show whether you able to connect to your GitHub account or not. If this command returns massage like You've successfully authenticated it is a good sign, see 3rd point.
Check if your private and public keys have default names. Sometimes Git has issues with keys that have custom names. If this is the case, try to use default names https://stackoverflow.com/a/70866215/5868267
Upvotes: 1