Unable to Push files/folders into new GitHub repository #23877
-
Hello, like the title suggests I’m unable to push files/folders into newly created github repository or any repository I have tried setting up a SSN key it it never connect to github using the command to test connection ssh -T git@github.com or using the https method setting up a personal access token it keep deny me access does anyone know whats going on and how to fix this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hey, what OS do you use? And how did you go about setting up the ssh? |
Beta Was this translation helpful? Give feedback.
-
Hi I’m using chrome os with linux enable so I guess you say linux and I followed the steps here |
Beta Was this translation helpful? Give feedback.
-
That error message looks like GitHub doesn’t know your SSH key. After creating the key (as described in the documentation link you posted) you need to add it to your account, see here: Adding a new SSH key to your GitHub account - GitHub Docs |
Beta Was this translation helpful? Give feedback.
-
Ok. I’m not used to linux (just windows and mac). But also check out the part of github documentation that talks about your issue. Let’s see if this helps solve it. Error: Permission denied (publickey)
Error: Permission denied (publickey) - GitHub Docs |
Beta Was this translation helpful? Give feedback.
-
I have created and connected to GitHub in the setting section where saying SSH key and I checked the fingerprint it’s the same. However, the problem still persists. |
Beta Was this translation helpful? Give feedback.
-
can someone walk me through how to do this part? I put the eval agent and got the output of agent pid then numbers but how do I do the next part? If I named the file as testkey.pub and used the legacy version to generate SSH key what would be the command ssh-add ~/.ssh/id_rsa/testkey.pub Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
can someone walk me through how to do this part?
I put the eval agent and got the output of agent pid then numbers but how do I do the next part?
If I named the file as testkey.pub and used the legacy version to generate SSH key what would be the command
ssh-add ~/.ssh/id_rsa/testkey.pub
Thank you.