#SSH key for github.com
# Linux should not be using sudo commands
Generate SSH Key:
$ ssh-keygen -t rsa -C "email@example.com"
Add public key to git:
$ cat ~/.ssh/id_rsa.pub
- Copy all ouput
- Open web browser and paste the output on the client settings you use.
Start SSH agent:
$ eval "$(ssh-agent -s)"
Add private key to SSH agent:
$ ssh-add ~/.ssh/id_rsa
SSH to GitHub
$ ssh -T git@github.com
- With debug ssh -vT git@github.com
#If success you can start using