I had the same problem as you, then I tried adding this code
#! /bin/bash
eval `ssh-agent -s`
ssh-add ~/.ssh/*_rsa
into file .bashrc
in my home directory. And it works!
More Related Contents:
- New to GitHub, how to run the commands on Windows?
- Could not open a connection to your authentication agent
- After $git push -u origin main command, Git bash is not requesting any authentication literally does nothing
- How to remove a directory from git repository?
- How to iterate through all git branches using bash script
- Git Init in home directory – now unable to commit changes
- Start ssh-agent on login [closed]
- git: ‘credential-cache’ is not a git command
- Various ways to remove local Git changes
- Using GIT_SSH_COMMAND in Git for Windows
- How do I change the default location for Git Bash on Windows?
- Cannot push to Git repository on Bitbucket
- Username and password in command for git push
- Could not open a connection to your authentication agent
- Git keeps asking me for my ssh key passphrase
- GitHub – fatal: could not read Username for ‘https://github.com’: No such file or directory
- Unable to Connect to GitHub.com For Cloning
- Change the location of the ~ directory in a Windows install of Git Bash
- Git Bash (mintty) is extremely slow on Windows 10 OS
- Using git with ssh-agent on Windows
- Set an environment variable in git bash
- SSH Agent Forwarding with Ansible
- git push –force-with-lease vs. –force
- How to export revision history from mercurial or git to cvs?
- git – push current vs. push upstream (tracking)
- git pull –rebase lost commits after coworker’s git push –force
- How do you fork your own repository on GitHub?
- Error when push commits with Github: fatal: could not read Username
- github: server certificate verification failed
- VS Code / Bitbucket / SSH – Permission denied (publickey)