2016-11-22 HW

posted Nov 22, 2016, 10:25 AM by Samuel Konstantinovich   [ updated Nov 22, 2016, 11:52 AM ]
Goal: Github!

HW: Set up ssh keys on your home computer/laptop.
If you use windows you need to install git on your machine first:

SSH KEYS: 
SSH keys serve as a means of identifying yourself to a server. SSH keys can allow you to connect to a server, or multiple servers, without having to remember or enter your password for each system.

Github SSH keys:

1. On the school account, paste the text below, substituting in your GitHub email address

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

You don't need to add a password for this file. If you add one, you will need to type it when you want to use the key.
Leave the name default, unless you already have some SSH keys you need to keep.
This will create a public/private pair of keys. (Think of it as a key and lock, the public one is the lock, and you can give it out freely without fear)
By default the one we want is:
~/.ssh/id_rsa.pub

2. Cat the file created in part 1, and paste the contents into your github.com ssh key section. Do not paste the filename, paste the CONTENTS.
3. To test access try this:
  ssh -T git@github.com

Comments