Skip to content
View 0mj's full-sized avatar
🙏
🙏

Block or report 0mj

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
0mj/README.md

Add a ssh key to github

Don't I have a key?

Check for existing keys..
ls -al ~/.ssh

Create your SSH key

So you dont have a key. Use the following steps to create one.

  1. ssh-keygen
  2. Press enter when prompted with "Enter file in which to save the..."
  3. Press enter twice when prompted with "Enter passphrase"
  4. Set permissions on your keys
    sudo chmod 600 ~/.ssh/id_rsa && sudo chmod 600 ~/.ssh/id_rsa.pub
  5. Run `ssh-agent` (yes including backticks)
  6. eval ssh-agent

Add your key to the SSH keychain

  1. ssh-add ~/.ssh/id_rsa
  2. View your public key cat ~/.ssh/id_rsa.pub
  3. Copy your public key from above
  4. Add it to your github Account's SSH Keys section
  5. Verify that the key is setup properly ssh -T git@githbub.com
  6. Say "yes" when asked if you'd like to add to known hosts
    You should see your username and some message about how shell access is disabled
  7. Exit and reopen terminal
  8. Run ssh -T git@github.com again just to ensure you can still connect to github after a restart

If you get an error about not having access when pushing a new repository try making one on github first ;)

Popular repositories Loading

  1. FPR FPR Public

    Family Pong Records

    Blade 1

  2. hello-world hello-world Public

    PHP

  3. Spoon-Knife Spoon-Knife Public

    Forked from octocat/Spoon-Knife

    This repo is for demonstration purposes only.

    HTML

  4. mongodb-driver-examples mongodb-driver-examples Public

    Forked from mongolab/mongodb-driver-examples

    A repository of MongoDB examples in several languages.

    JavaScript

  5. vba vba Public

    Visual Basic

  6. wdyd wdyd Public

    Please refer to Wiki for this repository.