cheatsheets

Generate a SSH key and add it to GitHub

SSH - Secure Shell

Installation

# For macOS
brew install ssh

# For Linux
# Built-in into the distribution

# For Windows
# Install `Git Bash` — <https://gitforwindows.org/>

Generate a SSH key

ssh-keygen -t rsa -C "EMAIL_ADDRESS"
# or
ssh-keygen -t rsa -C "$(hostname)"

Add a SSH key to GitHub

NOTE: The “Title” field can be left empty.

Check if it works

If you see the message:

Hi piecioshka! You've successfully authenticated, but GitHub does not provide shell access.

The configuration was successful.