When I clone from GitHub using CMD or PowerShell with ssh-agent on Windows 10 v.1909, the following shows:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
However, I ran ssh -vT git@github.com
and the key does work
debug1: Offering public key: {My key}
And
Hi {My username}! You've successfully authenticated, but GitHub does not provide shell access.
But with Git bash I can clone just fine.
This also happen with GitLab.
I tried
Host *
ForwardAgent yes
in .ssh/config
and it doesn't work.
I also tried every solution from GitHub Support Page and GitHub Community Forum and still doesn't work.
PS. I prefer Windows cmd.