Personal access token required despited added SSH key in GitHub
I added SSH key using this instruction. Despite it, a personal access token is required when I try to git pull
. Is it normal? I can't have multiple accounts in Windows because of this issue.
The only difference with the instruction that my key name is specific, I added config
file into ~/.ssh directory:
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_some_tag
UPD: I also noticed that the problem occurs only if I git clone https://...
but not when git clone [email protected]:username/gitname.git
. Can somebody explain how it works?
UPD2: git clone git@...
only worked for the first account but I can't git clone git@...
using the second account. I'm trying git clone
a private repo.
From my comment above:
Using "git clone https://..." is not using ssh, so your ssh config will not be used.