Error: Permission denied (publickey) #132632
Replies: 3 comments 9 replies
-
|
Hi @akbarahs So far, this all looks fine to me. In order to find out what is wrong, a debug log of the git-ssh connection might be useful (e.g., to see which key is actually used):
|
Beta Was this translation helpful? Give feedback.
-
|
For some reason git clone doesnt use the ssh keys added it only attempts to read from the ssh directory even if the ssh key exist in ssh agent this is a huge problem for me rn. |
Beta Was this translation helpful? Give feedback.
-
|
the reason is because the known_hosts file isnt created just create it and problem solved |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Folks,
I followed this article to the letter : https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey?platform=linux but still get the publick key denied error message.
root@host1:~# ssh -T git@github.comHi akbarahs! You've successfully authenticated, but GitHub does not provide shell access.root@host1:~# ssh-add -l256 SHA256:SyBszNZ8Xvn7ST/ox1XkldLzBRN6gGxAZkTecGRzK2E <email-id>@gmail.com (ED25519)root@host1:~# ssh-add -Lssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICKX+3Yi5V8ZARfHnOTEk8PJUaIiBhGwjEV3P44D0ZPy <email-id>@gmail.comroot@host1:~# git clone git@github.com:nonai/k8s-example-files.gitCloning into 'k8s-example-files'...git@github.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.root@host1:~#Any help is highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions