Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Secure GitHub connections with SSH

via egghead.io

Overview

SSH provides a secure way for your to connect to and authenticate with GitHub's servers. While HTTPS connections use usernames and passwords as credentials, SSH instead uses public and private key pairs. These can be generated on your system using a CLI like ssh-keygen and then associated with your GitHub account using the public key.
In some cases, you may need to connect to more than one GitHub account from the same system. For example, you may have separate accounts for personal and professional projects, which can be difficult to manage manually. Using ssh-agent and a SSH configuration file, you can alleviate this pain point by automatically determining which key to use based on your GitHub repository's git URL.

Syllabus

  • Generate SSH Keys for your GitHub Accounts
  • Manage Keys with ssh-agent and Add SSH Configuration
  • Update gitconfig to Work with Multiple Accounts and SSH Keys

Taught by

Ryan Harris

Reviews

4.5 rating at egghead.io based on 13 ratings

Start your review of Secure GitHub connections with SSH

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.