Git error message: Permission denied (publickey) fatal - Could not read from remote repository.

preview_player
Показать описание
You can follow below steps -
1. Check for existing keys-
a. ls -al ~/.ssh

2. Create key if does not exist-
Paste the text below, substituting in your GitHub email address.
b. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
c. At the prompt, type a secure passphrase.

3. Adding your SSH key to the ssh-agent-
Fire up the SSH agent and add the key
1. eval `ssh-agent -s`
2. ssh-add ~/.ssh/id_ed25519

4. Adding key to Github account-
Pull up the key and add to Github account
2. Navigate to Github account and add key

Hooray! now you should be able to push files to Github account.
Рекомендации по теме
Комментарии
Автор

nice guy, great explanation with short and clear way

justleul
Автор

Thank you so much! Short and clean explanation! It really saved me a lot of time!

maqomedrahmanov
Автор

You are a life saver. Thankyou very much!!!

rahulsinghshekhawat
Автор

Your are a genius, dude, and you have helped me.

ImTKYwhy
Автор

man you save may life, thank you very much.

puletdelta
Автор

Thank you so much!! Finally I get rid of public key staff to push code in GitHUb.

bediaguvenckesgin
Автор

Thank you soo much mate I was breaking my head try to get this done and finally it is done thank you

chaitranagabhushan
Автор

thank you so much, u just saved me a lot of time

qpnjfuu
Автор

Thank you so much bro it's also worked for me tqsm

gdwqwlf
Автор

Thank you very much, you have helped me a lot.

arthurmatea
Автор

Thanks man you helped me a lot with this video, have a greate day my friend

zennonzoldyck
Автор

Thank you bro it's working here :)

shafiulsaurav
Автор

Hi, if I do all this process through a virtual machine with ubuntu mate, then I change to windows, will it work anyway? cause I mostly use windows

Lashistoriasdelilith
Автор

For pull also it asks dor credential and git hub cred doesn’t work please help

tijendersingh