Generate SSH Keys to setup GitHub in Programming Environment - Tutorial # 01

 All details are available here

https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

OR

Click Here

Procedure:

  1. Open Git Bash.

  2. Paste the text below, substituting in your GitHub email address.

    $ ssh-keygen -t ed25519 -C "your_email@example.com"
    1. This creates a new ssh key, using the provided email as a label.
      > Generating public/private ed25519 key pair.
    2. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.

      > Enter a file in which to save the key (/c/Users/you/.ssh/id_ed25519):[Press enter]
    3. At the prompt, type a secure passphrase.

      > Enter passphrase (empty for no passphrase): [Type a passphrase]
      > Enter same passphrase again: [Type passphrase again]
    4. Add SSH KEYS:

    5. # start the ssh-agent in the background
      $ eval `ssh-agent -s`
      > Agent pid 59566
    6. $ ssh-add ~/.ssh/id_ed25519
    7. cat < ~/.ssh/id_ed25519.pub

Comments