Guest User

Untitled

a guest
Jul 15th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. - 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
  2. - 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
  3.  
  4. - use ssh-keygen:
  5. ssh-keygen -t rsa -b 4096 -C "yourusername@github.com"
  6. - go through those steps (dont really need a passphrase) and then the keys will be generated
  7. - unless you changed the file paths, the pubkey will be in /Users/username/.ssh/id_rsa
  8. - copy this and go to github settings -> ssh & gpg keys -> add new ssh key and paste it in
  9. - you may have to exec the following commands to make sure the change worked
  10. ssh -vT git@github.com and ssh-add
Add Comment
Please, Sign In to add comment