- See what GitHub says
ssh -T git@github.comIf it says "Hi username", SSH works and the problem is the repo address (step 4).
- Check a key is loaded
ssh-add -l"The agent has no identities" means no key is loaded. Do the next step.
- Load your key
ssh-add --apple-use-keychain ~/.ssh/id_ed25519No such file? You don't have a key yet. Create one with the SSH key page.
- Make sure the repo uses an SSH address
git remote set-url origin git@github.com:username/project.git - Still stuck? See the full conversation
ssh -vT git@github.comLook for lines starting with "Offering public key" to see which keys were tried.
- See what GitHub says
ssh -T git@github.comIf it says "Hi username", SSH works and the problem is the repo address (step 4).
- Check a key is loaded
ssh-add -l"Could not open a connection to your authentication agent" means the agent isn't running. Run eval "$(ssh-agent -s)" first.
- Load your key
ssh-add ~/.ssh/id_ed25519No such file? You don't have a key yet. Create one with the SSH key page.
- Make sure the repo uses an SSH address
git remote set-url origin git@github.com:username/project.git - Still stuck? See the full conversation
ssh -vT git@github.comLook for lines starting with "Offering public key" to see which keys were tried.
- See what GitHub says
ssh -T git@github.comIf it says "Hi username", SSH works and the problem is Git or the repo address (steps 4 and 5).
- Start the SSH agentRun as administrator
Get-Service ssh-agent | Set-Service -StartupType Automatic Start-Service ssh-agent - Load your key
ssh-add "$env:USERPROFILE\.ssh\id_ed25519" - Make sure the repo uses an SSH address
git remote set-url origin git@github.com:username/project.git - Make Git use the same SSH as Windows
git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"Git for Windows ships its own SSH, which can't see keys loaded into the Windows agent.