Skip to content

ddotcole/usinggithub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Using Github

About

This repository is a place for describing the process I use to initalize SSH to Github on my computer as well as basic commands used in my normal work flow.

Setting up a SSH Connection

  1. Bring up a console and navigate to:
cd ~/.ssh
  1. Type in the following command to generate a SSH key pair:
ssh-keygen -t ed25519 -C <email address>
  1. Follow all information requested by ssh-keygen. Once complete, check for a config file in ~/.ssh. If the config does not exist, create a new text file and insert the following information:
Host [email protected]
  AddKeysToAgent yes
  IdentityFile ~/.ssh/<key file name>
  1. Run the following command, copying the output to the clipboard:
cat <key file name>.pub
  1. This is your public key which must be added to Github using the following process:

    • Click on User in upper right corner of Github and choose Settings
    • Click SSH and GPG Keys section on the left hand side
    • Click New SSH key pasting the previously copied key into the Key section
    • Provide the key with a Title and click Add SSH key
  2. Now you can test your SSH connection to Github using the following command:

  1. Everything is working fine if you end up with a response like this:
Hi <user>! You've successfully authenticated, but GitHub does not provide shell access.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published