Setup Authentication with Github using SSH, github username/password authentication is deprecated.
Generate SSH Key
| |
This should generate a public and private key pair in ~/.ssh/ directory. Should be something like id_rsa and id_rsa.pub.
Github Setup
Go to github > settings > SSH and GPG keys > New SSH key and paste the contents of id_rsa.pub file. Key type used is authentication key.
Test Connection
| |
Permission Denied Error
If you get a permission denied error, you might need to add the key to the ssh-agent.
| |
All set, you can now clone repositories using SSH.