|
|
Check settings:
git config --list
SSH auth la github
Generare chei
Verifica cheile existente
ls -al ~/.ssh
Daca exista ceva de genul: id_rsa.pub, id_edcsa.pub, id_ed25519.pub, move on.
Daca nu exista, genereaza o cheie noua:
ssh-keygen -t ed25519 -C "michael.jackson@gmail.com"
enter enter enter
Porneste ssh-agent in background:
$eval "$(ssh-agent -s)"
Agent pid 214
Adauga cheia la ssh-agent:
ssh-add ~/.ssh/id_ed25519
Adauga cheia in GitHub
Copiaza cheia:
cat ~/.ssh/id_ed25519.pub
GitHub -> Profile -> Settings -> Add SSH key
Bam! Testeaza cu:
ssh -T git@github.com