Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - instead of username + pass you should use an ssh key so that you don't have to identify yourself to github everytime you try to interact with a repository
- - ssh keys come in priv/public pairs, the public one is given to github and the private one is only yours, if they match then you are granted access
- - use ssh-keygen:
- ssh-keygen -t rsa -b 4096 -C "yourusername@github.com"
- - go through those steps (dont really need a passphrase) and then the keys will be generated
- - unless you changed the file paths, the pubkey will be in /Users/username/.ssh/id_rsa
- - copy this and go to github settings -> ssh & gpg keys -> add new ssh key and paste it in
- - you may have to exec the following commands to make sure the change worked
- ssh -vT git@github.com and ssh-add
Add Comment
Please, Sign In to add comment