Giter VIP home page Giter VIP logo

github_flow's Introduction

The steps to connect to GitHub using SSH

1. Generate an SSH key

First, you need to generate an SSH key. Open your terminal or command prompt and execute the following command:

ssh-keygen -t ed25519 -C "[email protected]"

Note: If you already have an SSH key, you can skip this step.

2. Copy the public key to the clipboard

Copy the public key to your clipboard by executing the following command:

  • Linux/macOS:
cat ~/.ssh/id_ed25519.pub | pbcopy
  • Windows (Git Bash):
cat ~/.ssh/id_ed25519.pub | clip

3. Add the public key to GitHub

Access your GitHub account settings and add the SSH key.

  • Log in to GitHub, click on your avatar in the top right corner, and select "Settings."
  • From the left menu, select "SSH and GPG keys."
  • Click the "New SSH key" button.
  • Enter a descriptive title and paste the public key from your clipboard into the key field, then click "Add SSH key."

4. Test the SSH connection

Run the following command to test if the SSH connection to GitHub is working correctly:

On the first connection, you will be asked whether to accept the GitHub host key. Type "yes" and press Enter.

If the connection is successful, you should see a message like this:

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

Now you can securely connect to GitHub using SSH when cloning, pushing, and pulling repositories.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.