Github
info
If you already have a GitHub account and SSH keys set up, skip ahead to configure your SSH keys with GitHub. If you need to create a new GitHub account, sign up here.
Introduction
A personal GitHub account is vital for managing your code and contributions. It allows you to maintain a history of your work that extends beyond your tenure with us. This guide will help you set up a GitHub account and configure SSH access for secure and efficient repository interactions.
Creating a GitHub Account
If you don’t already have a personal GitHub account, follow these steps to create one:
- Visit GitHub's sign-up page.
- Follow the instructions to create a new account (use your personal email).
- Verify your email address to complete the account setup.
Setting Up SSH Keys
To securely access GitHub repositories, you need to set up SSH keys. SSH keys provide a more secure way of logging into a server with SSH than using a password alone. Here's how you can do it:
- Check if you have existing SSH keys:
ls -al ~/.ssh- Look for files named
id_rsa.puborid_ed25519.pub. - If you don’t have an SSH key, generate one using
ssh-keygen -t rsa -b 4096 -C "your_email@example.com".
- Look for files named
- Add your SSH key to the SSH agent:
- Start the SSH agent:
eval "$(ssh-agent -s)". - Add your SSH key to the SSH agent:
ssh-add ~/.ssh/id_rsaorssh-add ~/.ssh/id_ed25519.
- Start the SSH agent:
- Add your SSH key to your GitHub account:
- Copy your SSH key to the clipboard:
pbcopy < ~/.ssh/id_rsa.puborpbcopy < ~/.ssh/id_ed25519.pub. - Go to GitHub SSH Key settings.
- Click "New SSH key," paste your key, and save it. import
{ info }from "console"
- Copy your SSH key to the clipboard: